Compare Multiple Criteria to get a TRUE/FALSE result

spacker

New Member
Joined
Dec 8, 2017
Messages
1
I am trying to figure out how get a false result for “Hotel” if “Air”, “Stop”, “Car”, or “Rail” are FALSE for the traveler and location. The below traveler evaluates FALSE for “Air” and “Stop”, and TRUE for “Hotel”, because of the formula I am using.

The other issue is, not all travelers have multiple leg types. If the below traveler only had a “Hotel” my formula works.

I appreciate any help I can get! I know enough excel/VBA to be dangerous... but, this is making my head hurt :). Thank in advance!

1


Time / Date for Evaluation:

1. Dashboard $F$7 = 12/7/2017 10:54:00 AM
2. Dashboard $G$7 = 12/7/2017 0:00:00 AM (For Leg Type Hotel Only)
Leg Type Definitions in reference to the To Location, and To Date/Time:
1. Air: Date/Time of Arrival
2. Stop: Date/Time of Departure
3. Hotel: Date of stay
4. Car: Date/Time of Drop-off
5. Rail: Date/Time of Arrival
Formulas:
1. Count Air: =AND([@[LEG TYPE]]="AIR", [@[TO DATE (Local Time)]] <= Dashboard!$F$7)
2. Count Stop: =AND([@[LEG TYPE]]="STOP",[@[FROM DATE (Local Time)]]<=Dashboard!$F$7, [@[TO DATE (Local Time)]] >= Dashboard!$F$7)
3. Count Hotel: =AND([@[LEG TYPE]]="Hotel",[@[FROM DATE (Local Time)]]<=Dashboard!$G$7,[@[TO DATE (Local Time)]]>=Dashboard!$G$7)
4. Count Car: =AND([@[LEG TYPE]]="Car", [@[TO DATE (Local Time)]] >= Dashboard!$F$7)
5. Count Rail: =AND([@[LEG TYPE]]="Rail", [@[TO DATE (Local Time)]] >= Dashboard!$F$7)
6. Boots On The Ground: =OR([@[Count AIR]],[@[Count Stop]],[@[Count Hotel]],[@[Count Car]],[@[Count Rail]] =TRUE)

Stuff I was trying...
7. Count of Leg Types: =COUNTIFS([LEG TYPE],">""",[TRAVELER],[@<wbr>TRAVELER],[TO LOCATION],[@[TO LOCATION]])
8. Column1: =IF(COUNTIFS([LEG TYPE],"Hotel",[TRAVELER],[@<wbr>TRAVELER],[TO LOCATION],[@[TO LOCATION]]),COUNTIFS([LEG TYPE],">""",[TRAVELER],[@<wbr>TRAVELER],[TO LOCATION],[@[TO LOCATION]]),"")
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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