Specific Days in a NOW() formula Q

S

Sean

I have the formula below which states that if NOW is greater than the
Time in B1 (which is 3:00pm) then return NOW, oherwise return 3pm.

=IF(NOW()>B1,NOW(),B1)

How would I construct a formula that says if the days is any day other
than Tuesday or Wednesday, then use the formula above, but if it is
Tuesday or Wednesday, then B1 should be 8:00pm?

Thanks
 
G

Guest

Not sure exactly what you wanted but try this
=IF(WEEKDAY(NOW())=2,"8:00 p.m.",IF(WEEKDAY(NOW())=3,"8:00
p.m.",IF(NOW()>B1,NOW(),B1)))

if you want to check just in B1 change my now() to B1
 
M

Max

Perhaps this, in say, C1:
=IF(OR(WEEKDAY(TODAY())<>{2,3}),MAX(NOW(),B1),MAX(NOW(),TIME(20,0,0)))
 
S

Sean

Not sure exactly what you wanted but try this
=IF(WEEKDAY(NOW())=2,"8:00 p.m.",IF(WEEKDAY(NOW())=3,"8:00
p.m.",IF(NOW()>B1,NOW(),B1)))

if you want to check just in B1 change my now() to B1
Thanks John, took me a while to work out that Sunday = 1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top