help with date formula

  • Thread starter Thread starter Juco
  • Start date Start date
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
 
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 (£)
 
Back
Top