1, 2, 3.. IF formula and Rank If Uniques

Lewzerrrr

Active Member
Joined
Jan 18, 2017
Messages
256
Hi,

I'd have 2 separate data sources, 1 is a list of values that's automatically sorted highest to lowest. I have a formula that puts a Y next to a value if it meets a criteria. (This is in column B). What I'd like in column A is to place a 1, 2, 3.. but skip if the value in B is a Y. I only need to go up to 20 so it can be as complex as need be.

The 2nd is a list of values that isn't sorted at all, it's a list of serial #s with their sales next to. Again in column B is Y's if they meet criteria. I want to rank only the NON Y serials whilst also ignoring duplicates. Again I only really need to go up to rank 20 so can be a complex formula.


Here's 2 tables and the results I'd like to see.
1951122
295746
392650
Y83473
473195
569Y64
Y64295
650846
746392
846569
937157
10311219
1122Y83
12191314
13141412
1412937
1571031

<tbody>
</tbody>
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I assume that row 1 is headers and Cell A2 is the first Rank value. In cell A2 put:
=IF(AND(B2<>"Y",C2<>""),MAX($A$1:A1)+1,"")

Jeff
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,976
Members
449,095
Latest member
Mr Hughes

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
Back
Top