Have a column
A B
1 SELL
2
3 BUY
4
5
6
7 SELL
8
9 BUY
10
11
12 SELL
I want to find the position of the last BUY (9) or the last SELL (12). The empty cells are "".
Thanks for any assistance. An array formula will also be acceptable.
Have a column
A B
1 SELL
2
3 BUY
4
5
6
7 SELL
8
9 BUY
10
11
12 SELL
I want to find the position of the last BUY (9) or the last SELL (12). The empty cells are "".
Thanks for any assistance. An array formula will also be acceptable.
Last edited by SDruley; 03-07-2013 at 10:16 PM.
Turn Data into Information
Turn Information into Knowledge
Turn Knowledge into Direction
Turn Direction into Leadership
Turn Leadership into Results
Stephen Druley
It's not how quickly you think
But how deeply you think
The quality of thinking is measured
by remoteness to conformance
Stephen Druley
=MATCH("SELL",B:B,1) and =MATCH("BUY",B:B,1)
Thanks, rcm. It appears that I was incorrect in the original post. The blank cells contain "". When I use your formula as follows:
I get the last cell (row number) in shadowsBS which is a blank ("") cell, but when I remove the "" entries I get the correct answer. I would rather not remove the "" cells as this is a time consuming step.Please Login or Register to view this content.
Last edited by SDruley; 03-07-2013 at 10:34 PM.
This will return the row number of the last instance, regardless of any other data or blanks in column B.
Formula:Please Login or Register to view this content.
Last edited by Marcol; 03-07-2013 at 10:39 PM.
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
Thank you gentlemen for your guidance and thank you Mr. Marcol for your innovative solution.
with your data-set above:
andPlease Login or Register to view this content.
Please Login or Register to view this content.
- i.s.z -
CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
All good ideas are courtesy resources from this forum as well as others around the web.
- e.o.m -
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks