[Show all top banners]

shankha

More by shankha
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Any EXCEL Guru? Help! Help!! Help!!!
[VIEWED 2815 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 30 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
TPS EAD auto extended to June 2025 or just TPS?
TPS Renewal Reregistration
Nepali Passport Renew
Why Americans reverse park?
Biden said he will issue new Employment visa for someone with college degree and job offers
whats wrong living with your parents ?
" अनि ग्रिन कार्ड बन्यो त ?"
मैले नबुझेका केहि गीत का lyrics हरु
cannot accept Visa candidates
Shot Dead
Now Trump is a convicted criminal .
Does the 180 day auto extension apply for TPS?
Facts showing how US is worse than Russia
TPS advance parole Travel document i-131, Class of Admission ?
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