Formula Problem

nickharr

Active Member
Joined
Apr 8, 2008
Messages
251
Office Version
  1. 2019
Platform
  1. Windows
I would be very grateful if anyone could help me with this problem.

I have two worksheets - one containing information about bookings for our holiday let - Column A is the date they arrive, column B is the date they depart and column E is their name. This sheet is named "Bookings". The second sheet is named "Calendar" and brings foward the details from "Bookings". The formula I use (which someone from this forum kindly helped me with) is =IFERROR(INDEX(Bookings!$E$2:$E$500,MATCH(1,(Bookings!$A$2:$A$500<=A420)*(Bookings!$B$2:$B$500>=A420),0)),""). A420 contains a date of 1/1/2021. The formula has worked perfectly - any bookings added to the "Bookings" sheet have come over to the "Calendar". However, none of the details from 1/1/2021 show on "Calendar". I have checked and rechecked the date format and it is the same that I used in 2020. I can't understand why a new year would make a difference. Would anyone have any idea why this formula isn't working for next year's bookings?

I hope I have given enough details and thank you in advance of any suggestions.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi Nickharr,

Try entering the formula with Ctrl-Shift-Enter so Excel puts curly brackets around it.
 
Upvote 0
You may want to look into creating custom dynamic fields through the name manager as your Booking is only limited to a max row of 500.
 
Upvote 0
Hi Guys

Thanks for your replies.

The data is still well under row 500 so I think that should be okay.

I had done the Shift Ctrl Enter for the formulas so again, I don't think that is a problem.

All the data I need is contained within rows 2 and 236 so again I presume the 500 is sufficient.

Thanks again for your help and suggestions.
 
Upvote 0
Works for me if I use Ctrl-Shift-Enter

NickHarr.xlsx
ABCDE
1StartEndName
212/28/202012/29/2020Oldcust
312/30/20201/3/2021Newcust
42/2/20213/3/2021Latercust
5
Bookings


NickHarr.xlsx
AB
41512/27/2020 
41612/28/2020Oldcust
41712/29/2020Oldcust
41812/30/2020Newcust
41912/31/2020Newcust
4201/1/2021Newcust
4211/2/2021Newcust
4221/3/2021Newcust
4231/4/2021 
4241/5/2021 
Calendar
Cell Formulas
RangeFormula
B415:B424B415=IFERROR(INDEX(Bookings!$E$2:$E$500,MATCH(1,(Bookings!$A$2:$A$500<=A415)*(Bookings!$B$2:$B$500>=A415),0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Select all the cells that contain dates & change the format to General. Do all the dates change to numbers like 44197?
 
Upvote 0
Hi again guys

I have found the problem but I'm not quite sure why it caused the problem.

At the end of the dates in 2020 in "Bookings" sheetI had inserted an extra row to make additions for the full year. When I deleted this row it worked fine and also when I added the row back again it still worked fine.

Anyway I do appreciate all your help and suggestions.
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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