Formula to find next date in list

SDowse

Board Regular
Joined
Sep 23, 2009
Messages
109
Hi,

In my spreadsheet I have a sheet called "Stats" with various tables on it, on of which is a list of dates (header is in W1, values are in W2:W14). The dates are calculated by the first date being entered manually by me (just made the list so the first date is today) and the remainder being +14 of the date in the cell above.

What I want is a formula that can work out when the next date in the list is...so, for example, now it would show 18th July as that is the next date. The only way I can think of is doing a string of IF's, but there must be a simpler way of doing it without checking every value in the list?

Any ideas?
 

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

jono19872006

Board Regular
Joined
Mar 13, 2012
Messages
184
I wasnt sure what you wanted the "next date" to be ie after todays or after one in a cell reference?
substitute as necessery
note this formula will need to be entered by selecting control, alt, return rather then the normal return key

=MAX(IF(W2:W8>TODAY(),W2:W8,1000))
 

Robert Mika

MrExcel MVP
Joined
Jun 29, 2009
Messages
7,256
Actullay that should be Control+Shift+Enter.
Not sure about the 1000 for the False.
But you were very close.

Try like this confirm Control+Shift+Enter
=MIN(IF(W2:W14>TODAY(),W2:W14))
that will return the closest day after today
 

donfaison

New Member
Joined
Jan 7, 2014
Messages
15
I am using tables, with dates in one column and prices in another. There might be a week with no prices, then 3 for one date, then 5 prices two days later, etc. I am trying to average the prices for each date that exists in the table (in another worksheet) and and am looking for a way to do this without array formulas. I tried using 1st Date = MIN(Table1[Date]) to get the first date and 2nd Date = Match(1st Date, Table1[Date], 1) to function to populate the next list, but was surprised that neither of these functions will work with the dates in the table. Any ideas?
 

Watch MrExcel Video

Forum statistics

Threads
1,123,158
Messages
5,600,054
Members
414,357
Latest member
Gemma_R

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