Thread: COUNTIF
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tanya Tanya is offline
external usenet poster
 
Posts: 155
Default COUNTIF

Hi
I have the following formula, which I this forum gave me about six months
ago. The problem is I have just realised it is dependent on a couple of
factors.
1. If I delete or add a column before the group of columns I am working on
the formula returns an error.
2. I have just realised that if the first column in the aray does not have
an entry the whole formula does not work.

While I am grateful to the effort afforded my project already, I would
greatly appreciate if someone could look at my problem
Cell Reference AE5 has the following formula
=IF(COUNT(O5:AB5)=0,"-",SUMPRODUCT(--(MOD(COLUMN($O$3:$AC$3),2)=1),($O$3:$AC$3),--(MOD(COLUMN(P5:AD5),2)=0),(P5:AD5))*0.01)

What I need to do is as follows:

In columns O to AC row 3 alternate cells there is a % value
In columns P to AD Row 5-34 in alternate cells the content is either "-" or
value between 0-100

Therefore cell AE5 needs to calculate P5*O3 + R5*Q3 and so on...

I pray there is an easier formula to work with because I just can't get the
formula to work properly, every time I want to add a column to the left area
I am working in I get errors.

Please help

Regards
Tanya