If Function

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
I am trying to help the receptionist with the parking log and validations. 2 stamps are used. If its after 10:30 and they stay more than 2 hours then "Use a 1 day stamp". Any other time use 20 minute stamps.

This is the function
a1 10:30 time in
a2 1:30 time out
a3 2:30 elasped time

=IF(a1>0.43681&a3>0.0831,"USE ALL DAY STAMP",IF(ROUND(a3*72,0)>4,4,ROUND(a3*72,0)))

Heres the problem
IF(a1>0.43681&a3>0.0831,
If(a1>10:30am & 3 > 2:00,

How do I join these 2 conditions or does anyone have a better idea. Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try;
=IF(AND(A1>0.437,A3>0.10417),"USE ALL DAY STAMP","USE 20 MINUTE STAMP")

Ivan
This message was edited by Ivan F Moala on 2002-03-22 10:29
 
Upvote 0
With criteria in C1 (10:30:00 AM)
and D1 (2:00:00 )

=IF(AND(B2>$C$1,B2-A2>$D$1),"Use a 1 day Stamp","20 Minute Stamp")
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,543
Latest member
MartinLarkin

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