Adding an aditional forumla to this one

  • Thread starter Thread starter Mark D
  • Start date Start date
M

Mark D

Hi Guys

Had some great help yesterday on here from Bob Phillips (Thanks again Bob)

I know have the following formula that works great.

=IF(AND($C$66=2,--TEXT($D$66,"yyyymm")<=--TEXT(O3-DAY(O3)+1,"yyyymm")),LOOKUP(DATEDIF($D$66,O3+1,"M"),{0,4,8}, {0,0.7,1})*$F$66,0)

But I need 1 last element added to it and can't seem to get it right.

Basically the above formula works if C66=2,

BUT if B66 doesnt = 2 I need to apply this
IF($G44<O3,$F66,"")

Thanks in advance
 
BUT if B66 doesnt = 2 I need to apply this
Do you mean C66?

If so, try:
=IF(AND($C$66=2,--TEXT($D$66,"yyyymm")<=--TEXT(O3-DAY(O3)+1,"yyyymm")),LOOKUP(DATEDIF($D$66,O3+1,"M"),{0,4,8},
{0,0.7,1})*$F$66,IF($G44<O3,$F66,""))

Regards,
Fred
 
hi,
try

=IF(AND($C$66=2,--TEXT($D$66,"yyyymm")<=--TEXT(O3-DAY(O3)+1,"yyyymm")),LOOKUP(DATEDIF($D$66,O3+1,"M"),{0,4,8}, {0,0.7,1})*$F$66,IF($G44<O3,$F66,""))
 
Sorry Fred yes I meant C66,

Fred Smith said:
Do you mean C66?

If so, try:
=IF(AND($C$66=2,--TEXT($D$66,"yyyymm")<=--TEXT(O3-DAY(O3)+1,"yyyymm")),LOOKUP(DATEDIF($D$66,O3+1,"M"),{0,4,8},
{0,0.7,1})*$F$66,IF($G44<O3,$F66,""))

Regards,
Fred



.
 
Back
Top