Help with multiple conditions formula

pete7722

New Member
Joined
Jul 18, 2012
Messages
7
Hi all,

Im in need of some help with a multiple conditions formula. I have a vehicle booking workbook with a daily booking view. I am trying to break it down into part days but cannot get the conditions to meet.

The formula i am using is:

Code:
=IF(AND($B17<>"",$C17<>""),1-SUMPRODUCT(('Car Reservation'!$F$2:$F$1000<=E$15)*('Car Reservation'!$G$2:$G$1000>=E$15)*('Car Reservation'!$H$2:$H$1000=$B17)*('Car Reservation'!$I$2:$I$1000=$C17)*('Car Reservation'!$D$2:$D$1000<=E$16)*('Car Reservation'!$E$2:$E$1000>=E$16)),"")

F = Start Date
G = End Date
H = Car Make
I = Car Registration
D = Start Time
E = End Time

Thank you very much in advance for your help.

Regards,

Pete


I can get the formula to meet the conditions for the beginning time of each day but not to recognize the end time on a different day.
 
Like this?

=IF(AND($B17<>"",$C17<>""),LEFT(TRIM(INDEX('Car Reservation'!$B$2:$B$11,MATCH(1,INDEX((('Car Reservation'!$F$2:$F$11+'Car Reservation'!$D$2:$D$11)<=(E$15+E$16))*(('Car Reservation'!$G$2:$G$11+'Car Reservation'!$E$2:$E$11)>=(E$15+E$16))*('Car Reservation'!$H$2:$H$11=$B17)*('Car Reservation'!$I$2:$I$11=$C17),),FALSE))),5),"")
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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