How to flag a series of selections based on the order of the selection?

stuckagain22

Board Regular
Joined
Aug 4, 2006
Messages
183
Here's an example:

Rows A1 to A10 will flag as "yes" if a condition is met on the appropriate row in another column.

When the first "yes" appears, I want to rank it as #1. When the next "yes" appears, I want to rank that as #2, and etc. Is there anyway to do this? (Preferably with cell formulas).

Thanks.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

konew1

Well-known Member
Joined
Oct 17, 2007
Messages
2,288
Try this in A2 and copy down
=IF(B2=2,"yes "&TEXT(COUNTIF($A$1:A1,"yes*")+1,0),"")

My reference to B2 is the condition in the other column
 
Upvote 0

stuckagain22

Board Regular
Joined
Aug 4, 2006
Messages
183
Unfortunately this doesn't work as it "serially" numbers the selections.

If A3 is triggered first, it will show "1" in A3.
If A5 is triggered next, then it will show "1" in A3 and "2" in A5.

Now, here's the problem...

If A4 is triggered next, then it will show "2" in A4, and A5 will now change to "3".

I'm beginning to think the only way to make it work will likely be something in vb code... which I don't know at all.
 
Upvote 0

Forum statistics

Threads
1,196,028
Messages
6,012,956
Members
441,740
Latest member
abaz21

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top