Create a list from earliest to latest dates based on another cells value

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
594
Office Version
  1. 365
Good morning

I have a formula
Code:
SMALL(Master!$O$4:$O$275,P41)
- What I am looking to do is have it based on Column V - so if V is empty I want it to include it, however, if it has a value, I want it NOT to be included in the list

Many thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Enter this CTRL-SHIFT-ENTER not just enter:

=SMALL(IF(Master!$V$4:$V$275<>"",Master!$O$4:$O$275),P41)
 
Upvote 0
Thank you for this. Now I need the lookup to do the same, and omit anything with a value in column .
Code:
=INDEX(Master!A4:A400,MATCH('BI STATS'!T40,Master!O4:O400,0))

Enter this CTRL-SHIFT-ENTER not just enter:

=SMALL(IF(Master!$V$4:$V$275<>"",Master!$O$4:$O$275),P41)
 
Last edited:
Upvote 0
Sorry, the first formula is in BI STATS T40 (which is a date)

The IF bit

IF(Master!$V$4:$V$275<>"",Master!$O$4:$O$275)

in

=SMALL(IF(Master!$V$4:$V$275<>"",Master!$O$4:$O$275),P41)

all values from the O range which corresponds to a non-empty V cell. Although you are approving this, it is actually the opposite of what you seem saying in your original post.

You now forward:

=INDEX(Master!A4:A400,MATCH('BI STATS'!T40,Master!O4:O400,0))

and comment: "Now I need the lookup to do the same, and omit anything with a value in column." Care to elaborate what does this comment mean?
 
Upvote 0
Hi - apologies for the delay.. Been off from work and first day back in.... I have reworked formula, and it now works, HOWEVER, as there are multiple date entries (ie I have 3 values with 31 July) - it will only list the first one, but three times, - how can it be amended so it will show all 3 lines where it occurs?

Code:
[COLOR=#343A41][FONT="Segoe UI WestEuropean"]=SMALL(IF([/FONT][/COLOR]
[COLOR=#343A41][FONT="Segoe UI WestEuropean"](Master!$Q$4:$Q$275<>"XXXXX - Completed")*[/FONT][/COLOR]
[COLOR=#343A41][FONT="Segoe UI WestEuropean"](Master!$Q$4:$Q$275<>"XXXXX Work In Progress")*[/FONT][/COLOR]
[COLOR=#343A41][FONT="Segoe UI WestEuropean"](Master!$Q$4:$Q$275<>"XXXXX Rejected")*[/FONT][/COLOR]
[COLOR=#343A41][FONT="Segoe UI WestEuropean"](Master!$Q$4:$Q$275<>"")*[/FONT][/COLOR]
[COLOR=#343A41][FONT="Segoe UI WestEuropean"](Master!$Q$4:$Q$275<>"YYYYY Rejected")*[/FONT][/COLOR]
[COLOR=#343A41][FONT="Segoe UI WestEuropean"](Master!$Q$4:$Q$275<>"YYYYY Completed"),[/FONT][/COLOR]
[COLOR=#343A41][FONT="Segoe UI WestEuropean"]Master!$O$4:$O$275),W9)[/FONT][/COLOR]
 
Upvote 0
Hi there. Thank you for your help. I have completely reworked from scratch using RANK what I was trying to achieve, and it now works
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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