[Show all top banners]
Back to: Kurakani General Refresh page to view new replies
 Any EXCEL Guru? Help! Help!! Help!!!
[VIEWED 2813 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 200 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration
TPS Re-registration case still pending ..
What are your first memories of when Nepal Television Began?
निगुरो थाहा छ ??
ChatSansar.com Naya Nepal Chat
Basnet or Basnyat ??
Sajha has turned into MAGATs nest
NRN card pros and cons?
TPS EAD auto extended to June 2025 or just TPS?
Nas and The Bokas: Coming to a Night Club near you
मन भित्र को पत्रै पत्र!
Will MAGA really start shooting people?
Democrats are so sure Trump will win
Top 10 Anti-vaxxers Who Got Owned by COVID
TPS Work Permit/How long your took?
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
Breathe in. Breathe out.
3 most corrupt politicians in the world
Dementia Joe has been selected to become the next President
आज बाट तिहारको सेल सकियो
Nas and The Bokas: Coming to a Night Club near you
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