[Show all top banners]
Back to: Kurakani General Refresh page to view new replies
 Any EXCEL Guru? Help! Help!! Help!!!
[VIEWED 2750 TIMES]
SAVE! for ease of future access.
Posted on 02-02-07 8:57 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hi, guys!

Any ideas how to write a Macro to achieve the following in EXCEL?
_______________________

If Coulmn2="Rt" AND Column3="brake" (e.g. Row2 as highlighted),

Then do the followings:

-> write "brake" in Column4 (same as copying the content from Column3)
AND,
-> look for the NEXT HIGHER value in Column1, e.g. Row2 has value 1 in Column1, so the next higher value is 2 (=1+1),
-> if found (i.e., if 2 is found in Column2 in this example), see if it has "brake" in Column3; if it has, then write "brake" in Column4 (or any new column),
-> now look for still higher value in Column1 (that is 3) and see if it has "brake" entry in Column3; if it has, then write "brake" in Column4, and so on (a loop!)
-> The loop ends when the next higher value does not have "brake in column3 or the next higher value is not found.

 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 60 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
मन भित्र को पत्रै पत्र!
Guess how many vaccines a one year old baby is given
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
Why Americans reverse park?
They are openly permitting undocumented immigrants to participate in federal elections in Arizona now.
Driver license help ASAP sathiharu
whats wrong living with your parents ?
ढ्याउ गर्दा दसैँको खसी गनाउच
TPS Reregistration and EAD Approval Timeline.......
lost $3500 on penny stocks !!!
nrn citizenship
Elderly parents travelling to US (any suggestions besides Special Assistance)?
कल्लाई मुर्ख भन्या ?
जाडो, बा र म……
Changing job after i-140 approval
Is this a progressive step?
Nepalese Students Face Deportation over Pro-Palestine Protest
Trasiting through Istanbul, Turkey
Nepali **fake** Veterans. Be aware!!
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters