Excel List help

AndrewD04

New Member
Joined
Aug 24, 2017
Messages
40
Office Version
  1. 365
Hi Guys,

I am working on a piece of work where i ahve a list of names and dates next to them.

What i would liek to do is excel to scan all the dates and any date less than today to return the name to the left of the date however i only want it to build a list of names that have expired and not a full list with blanks.

Sample Data
Kerry 30/07/2019
Steve 16/05/2019
Clare 15/09/2019
John 14/08/2015

Results i would like
Kerry
Steve
John

Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hey,

Is this something you're after?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Sample Data[/TD]
[TD]Results[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Kerry 30/07/2019[/TD]
[TD]Kerry[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Steve 16/05/2019[/TD]
[TD]Steve[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Clare 15/09/2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]John 14/08/2015[/TD]
[TD]John[/TD]
[/TR]
</tbody>[/TABLE]


Where B2 has the formula (dragged down):

<today(),trim(left(a2,len(a2)-10)),""),"")
Code:
IFERROR(IF(EDATE(RIGHT(A2,10),0)<=TODAY(),TRIM(LEFT(A2,LEN(A2)-10)),""),"")

The main assumption here is that the string in column A always ends with a date in dd/mm/yyyy format (i.e. exactly 10 characters)</today(),trim(left(a2,len(a2)-10)),""),"")
 
Last edited:
Upvote 0
Id have thought that the names are in one column and the dates another. If so try this array formula that requires CTRL-SHIFT-ENTER

=IFERROR(INDEX($A$1:$A$4,SMALL(IF($B$1:$B$4 < TODAY(),ROW($B$1:$B$4)-ROW($B$1)+1),ROWS($A$1:A1))),"")<today(),row($b$1:$b$4)-row($b$1)+1),rows($a$1:a1))),"")< html=""></today(),row($b$1:$b$4)-row($b$1)+1),rows($a$1:a1))),"")<>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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