Find next scheduled date in range

kripper

Board Regular
Joined
Dec 16, 2013
Messages
102
Hello again everyone...back to be a pain......

I am trying to figure out a formula to get the next scheduled date from a row. I have my entire months schedule in an excel sheet, with "Rest Days" and "Vacation Days" mixed in with start times.
s!Amk_7FQHP36kg-QIQkSMIQUpHZGshg


https://1drv.ms/x/s!Amk_7FQHP36kg-QJndYbzMT0UBfUaw

What I am trying to do is find the next available scheduled date from the dates in row 5 after today, skipping the Rest Days, Vacation Days etc., basically anything that does not have a start time in row 2.

Hoping that makes sense...currently I am using the following formula to find the next scheduled date, and it works to give me tomorrow, but will not work to skip to the next actual scheduled date.

=IFERROR(SMALL(IF($C$9:$NJ$9>TODAY(),$C$9:$NJ$9),1),MAX($C$9:$NJ$9))

Hope someone can tell me where I am going wrong.

Thanks in advance....

MR.EXCEL RULES
 

Some videos you may like

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

kripper

Board Regular
Joined
Dec 16, 2013
Messages
102
Hello again everyone...back to be a pain......

I am trying to figure out a formula to get the next scheduled date from a row. I have my entire months schedule in an excel sheet, with "Rest Days" and "Vacation Days" mixed in with start times.
s!Amk_7FQHP36kg-QIQkSMIQUpHZGshg


https://1drv.ms/x/s!Amk_7FQHP36kg-QJndYbzMT0UBfUaw

What I am trying to do is find the next available scheduled date from the dates in row 5 after today, skipping the Rest Days, Vacation Days etc., basically anything that does not have a start time in row 2.

Hoping that makes sense...currently I am using the following formula to find the next scheduled date, and it works to give me tomorrow, but will not work to skip to the next actual scheduled date.

=IFERROR(SMALL(IF($C$9:$NJ$9>TODAY(),$C$9:$NJ$9),1),MAX($C$9:$NJ$9))

Hope someone can tell me where I am going wrong.

Thanks in advance....

MR.EXCEL RULES

Well I think I answered my own question after a few more trial and errors....

{=INDEX($C$9:$NJ$9,MATCH(1,(ISNUMBER($C$6:$NJ$6)*($C$9:$NJ$9>TODAY())),0))}

AND IT WORKS.........................
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,618
Office Version
  1. 2007
Platform
  1. Windows
Well I think I answered my own question after a few more trial and errors....

{=INDEX($C$9:$NJ$9,MATCH(1,(ISNUMBER($C$6:$NJ$6)*($C$9:$NJ$9>TODAY())),0))}

AND IT WORKS.........................

It can also be:

{=IFERROR(SMALL(IF($C$5:$NJ$5>TODAY(),IF(ISNUMBER(C2:V2),$C$5:$NJ$5)),1),MAX($C$5:$NJ$5))}
 

kripper

Board Regular
Joined
Dec 16, 2013
Messages
102
It can also be:

{=IFERROR(SMALL(IF($C$5:$NJ$5>TODAY(),IF(ISNUMBER(C2:V2),$C$5:$NJ$5)),1),MAX($C$5:$NJ$5))}

Thanks again my friend.......that works amazingly as well.

I love this forum......
 
Last edited:

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,618
Office Version
  1. 2007
Platform
  1. Windows
Thanks again my friend.......that works amazingly as well.

I love this forum......

I'm glad to help you. Thanks for the feedback.

I love the forum too.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,263
Messages
5,623,704
Members
415,983
Latest member
MusicMan

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