[Show all top banners]
Back to: Kurakani General Refresh page to view new replies
 Any EXCEL Guru? Help! Help!! Help!!!
[VIEWED 2972 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 ..
Anybody gotten the TPS EAD extension alert notice (i797) thing? online or via post?
ChatSansar.com Naya Nepal Chat
Mamta kafle bhatt is still missing
Toilet paper or water?
ढ्याउ गर्दा दसैँको खसी गनाउच
Problems of Nepalese students in US
Nepali Passport Renewal
Biden out, Trump next president, so what’s gonna happen to TPS, termination?
Are Nepalese cheapstakes?
Sajha Poll: Who is your favorite Nepali actress?
अरुणिमाले दोस्रो पोई भेट्टाइछिन्
seriously, when applying for tech jobs in TPS, what you guys say when they ask if you have green card?
Nepali Psycho
Biden formally Stands Down!!!
TPS extension Petition!!!
News Summary from Nepal for Friday, July 19, 2024
News Summary from Nepal for Saturday, July 20, 2024
KP Oli and Nepali Political Corruption
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