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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,215,516
Messages
6,125,286
Members
449,218
Latest member
Excel Master

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