Need a little advice for next date after today in a range

camle

Board Regular
Joined
Jan 10, 2013
Messages
216
Would like to get the next date from a range with a list of dates

Code:
=IFERROR(MAX(INDIRECT("'"&D8&"-TVDB'!$C$1:$C$50000"),"<"&TODAY()*"'"&D8&"-TVDB'!$C$1:$C$50000"),"None"

Having trouble finding why it's not picking up the next date after today.
The return is always "None"

Thanks
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
For one, there is no closing paren at the end of "None") Secondly if there more conditions you're not showing us?
 
Upvote 0
True the paren was not copied in the ex. above, so thank you for noticing that.

D8 = are different names
Ex. The Simpsons-TVBD

INDIRECT("'"&D8&"-TVDB'!$C$1:$C$50000") points to the tab named "The Simpsons-TVBD"
in the range from C1:50000 are a list of dates:

11/20/2017
11/27/2017
12/15/2017
12/28/2017
1/10/2018

I wanted the formula to select 1/10/2018, with today being 12/28/2017
All cells involved have just the data in them, no time.
They are formatted short date.
 
Upvote 0
This returns TRUE but isn't what you really want:
Code:
=IFERROR(MAX(INDIRECT("'"&D8&"'!$C$1:$C$50000"))<TODAY()*MAX(INDIRECT("'"&D8&"'!$C$1:$C$50000")),"None")
 
Upvote 0
Code:
=IFERROR(MAX(INDIRECT("'"&D8&"-TVDB'!$C$1:$C$50000")),"None")

Little mod to the formula, because I got an error missing a paren
But it does work on some worksheets being referenced.
On other sheets it will go past the next date (closest to today) skipping 1 or more, some going all the way to the end of the list.:confused:

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,593
Members
452,654
Latest member
mememe101

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