help with date formula

J

Juco

if cell D7 = 5 or 6 then cell M7 to show 150
if cell D7 = 7 or 8 then cell M7 to show 200

The 5 6 7 8 refer to months ie May/June/July/August
The 150/200 are £s

Looking for formula to do the above

thansk
 
M

Max

One way

Assuming inputs in D7 are dates

Put in M7:

=IF(D7="","",IF(OR(MONTH(D7)=5,MONTH(D7)=6),150,IF(OR(MONTH(D7)=7,MONTH(D7)=
8),200,"")))

Format M7 as currency (£)
 

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