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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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