Thread: Formula
View Single Post
  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=24*(SUMPRODUCT(--(MONTH($B$4)={1,3,6,8,9}))+3*(MONTH(B4)=7))

In article ,
Deepwater wrote:

I am looking for a formula, that assiagn certain values for certain months.

for example : i want to compare the date in Cell B4, if it falls in
following months it should asign following values each month
for Jan, March, June, Aug, Sep = 24 , July=72 and remaining months " 0 "

Thanks inadvance.