[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 2800 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 365 days
Recommended Popular Threads Controvertial Threads
Lets play Antakshari...........
[New post] Why Would Krishna Have To Run From The Battlefield
डीभी परेन भने खुसि हुनु होस् ! अमेरिकामाधेरै का श्रीमती अर्कैसँग पोइला गएका छन् !
शीर्षक जे पनि हुन सक्छ।
What are your first memories of when Nepal Television Began?
Sajha Poll: नेपालका सबैभन्दा आकर्षक महिला को हुन्?
ChatSansar.com Naya Nepal Chat
is Rato Bangala school cheating?
NRN card pros and cons?
Basnet or Basnyat ??
निगुरो थाहा छ ??
TPS Re-registration
TPS Re-registration case still pending ..
Nas and The Bokas: Coming to a Night Club near you
श्राद्द
ओच्छ्यान मुत्ने समस्या ( confession )
अमेरिकामा छोरा हराएको सूचना
इन्दिरा जोशीको चिन्ता लौच
ठुलो ठुलो दुध भएकी युवती ...
susta manasthiti lai ke bhanchan english ma?
Nas and The Bokas: Coming to a Night Club near you
Mr. Dipak Gyawali-ji Talk is Cheap. US sends $ 200 million to Nepal every year.
Harvard Nepali Students Association Blame Israel for hamas terrorist attacks
TPS Update : Jajarkot earthquake
is Rato Bangala school cheating?
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