ISNUMBER
"Tanya" wrote in message
...
Hi
I have this problem:
AF5 has the following formula
=IF(COUNT(Q5:AE5)=0,"-",SUMPRODUCT(--(MOD(COLUMN($P$3:$AD$3)-COLUMN($P$3),2)=0),$P$3:AD$3,Q5:AE5)*0.01)
Resulting in a % or "-"
BF5 has this formula
=IF(COUNT(AQ5:BE5)=0,"-",SUMPRODUCT(--(MOD(COLUMN($AP$3:$BD$3)-COLUMN($AP$3),2)=0),AP$3:$BD$3,AQ5:BE5)*0.01)
NOW...
BM5 needs to decide if AF5 & BF5 have % [may also be 0%] or "-" then if
either of these cells has a % value, I need to devide sum by 2, if not I
want
to display "-".
I think I need a combination of IF, ISNUMBER and another operater but
can't
get it to work.
Kind Regards
Tanya
I'm not quite sure if I understand what you mean by "I need to devide sum by
2". Do you mean you want the sum of AF5 and BF5 divided by 2? If so, try
this:
=IF(OR(ISNUMBER(AF5),ISNUMBER(BF5)),SUM(AF5,BF5)/2,"-")
If not, you may be able to adapt this yourself. Otherwise, post back with
clarification.
|