Is a date in summer or winter?

G

Guest

I am trying to compare a date that I input with a date range to determine
seasonal pricing. This is the formula I used.
=IF(AND((C45>4/15),(C45>12/1)),68,74). I suspect I need to change the date
format. Is that the case? And if so, could you please provide and example.
 
P

Peo Sjoblom

Maybe something like

=IF(C45="","",IF(AND(C45>DATE(2007,4,15),C45<DATE(2007,10,16)),68,74))
 
B

Bob Phillips

=IF(AND(C45>DATE(YEAR(C45),4,15),C45<DATE(YEAR(C45),12,1)),68,74)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Guest

Thanks. That worked.

Bob Phillips said:
=IF(AND(C45>DATE(YEAR(C45),4,15),C45<DATE(YEAR(C45),12,1)),68,74)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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