last date until today in range

Lukas C

New Member
Joined
Nov 9, 2016
Messages
24
Hi i have a wee array formula here to show me last booking
{=MAX(IF('[calendar.xlsx]full year'!$D$8:$ABG$103=B2,'[calendar.xlsx]full year'!$D$4:$ABG$4,""))}
'[calendar.xlsx]full year'!$D$8:$ABG$103 - is where you book names
B2 - client name to look for
'[calendar.xlsx]full year'!$D$4:$ABG$4 - range of dates from 1/1 to 31/12

but how can i adjust it to show me last booking until today and first booking after today ?

any help much appreciated
 

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.
Hi,

As a blind test ...following array formula :

Code:
=MAX(IF('[calendar.xlsx]full year'!$D$8:$ABG$103=B2,IF('[calendar.xlsx]full year'!$D$4:$ABG$4 <=TODAY(),'[calendar.xlsx]full year'!$D$4:$ABG$4),""))

Hope this will help
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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