This didnt work. In column I:U, column I, K, M, O, Q, S and U. I will
color cell in the respective row of column G. only if in all cell of a
row of I, K, M, O, Q, S and U contain a numeric value except a zero or
blank. What i meant is that in for example in row 4. All the cell I4,
K4, M4, O4, Q4, S4 and U4 all must contain a numeric value except a
zero or blank, then the respective cell in column G (G4) will be color.
This is used to indicate that all the different product uses this part
thus is common to all. Sorry for all the trouble i have caused. Thanks
Biff - 31 Mar 2006 03:58 GMT
Try this:
=SUMPRODUCT(--(MOD(COLUMN(I4:U4),2)=1),--(I4:U4>0))=7
Biff
> This didnt work. In column I:U, column I, K, M, O, Q, S and U. I will
> color cell in the respective row of column G. only if in all cell of a
[quoted text clipped - 4 lines]
> This is used to indicate that all the different product uses this part
> thus is common to all. Sorry for all the trouble i have caused. Thanks
kuansheng - 31 Mar 2006 04:59 GMT
THanks a million that is what i am looking for. Could you guide me how
this formula works?
Biff - 31 Mar 2006 19:36 GMT
> THanks a million that is what i am looking for. Could you guide me how
> this formula works?
Sure:
=SUMPRODUCT(--(MOD(COLUMN(I4:U4),2)=1),--(I4:U4>0))=7
Since the range you're interested in is every other column starting in
column I through column U, the MOD function checks the column number and
makes sure only the defined columns you want are included in the
calculation.
There are a total of 7 columns that fit the criteria so we need to check
that the total number of entries that meet the criteria equals 7.
Biff