Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
how would you count everyother cell?
|
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
Count based on what?
Here's one way: =SUMPRODUCT(--(MOD(ROW(A1:A10)-ROW(A1),2)=0),--(ISNUMBER(A1:A10))) Counts every other cell starting from A1 to A10 if it contains a number. Biff "Arby" wrote in message ... how would you count everyother cell? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
"Biff" wrote: Count based on what? Here's one way: =SUMPRODUCT(--(MOD(ROW(A1:A10)-ROW(A1),2)=0),--(ISNUMBER(A1:A10))) Counts every other cell starting from A1 to A10 if it contains a number. Biff "Arby" wrote in message ... how would you count everyother cell? Thank you Biff--another question How would I count everyother non blank cell? Thx |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
=SUMPRODUCT(--(MOD(ROW(A1:A10)-ROW(A1),2)=0),--(A1:A10<""))
Biff "Arby" wrote in message ... "Biff" wrote: Count based on what? Here's one way: =SUMPRODUCT(--(MOD(ROW(A1:A10)-ROW(A1),2)=0),--(ISNUMBER(A1:A10))) Counts every other cell starting from A1 to A10 if it contains a number. Biff "Arby" wrote in message ... how would you count everyother cell? Thank you Biff--another question How would I count everyother non blank cell? Thx |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
"Biff" wrote: =SUMPRODUCT(--(MOD(ROW(A1:A10)-ROW(A1),2)=0),--(A1:A10<"")) Biff "Arby" wrote in message ... "Biff" wrote: Count based on what? Here's one way: =SUMPRODUCT(--(MOD(ROW(A1:A10)-ROW(A1),2)=0),--(ISNUMBER(A1:A10))) Counts every other cell starting from A1 to A10 if it contains a number. Biff "Arby" wrote in message ... how would you count everyother cell? Thank you Biff--another question How would I count everyother non blank cell? Thx I am getting a circular refence error when i replace A1:A10 with H3:H795 which is my range--any ideas--Thx? |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
I am getting a circular refence error when i replace A1:A10 with
H3:H795 which is my range--any ideas--Thx? Move the formula from the referenced range. In other words, don't put the formula in a cell inside the range H3:H795. Biff "Arby" wrote in message ... "Biff" wrote: =SUMPRODUCT(--(MOD(ROW(A1:A10)-ROW(A1),2)=0),--(A1:A10<"")) Biff "Arby" wrote in message ... "Biff" wrote: Count based on what? Here's one way: =SUMPRODUCT(--(MOD(ROW(A1:A10)-ROW(A1),2)=0),--(ISNUMBER(A1:A10))) Counts every other cell starting from A1 to A10 if it contains a number. Biff "Arby" wrote in message ... how would you count everyother cell? Thank you Biff--another question How would I count everyother non blank cell? Thx I am getting a circular refence error when i replace A1:A10 with H3:H795 which is my range--any ideas--Thx? |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
"Arby" wrote:
how would you count every other cell? One interp .. Count the # of alternate* cells in a column range, eg: A2:A11 *starting with the top cell in the range (ie A2) =SUMPRODUCT(--(MOD(ROW(A2:A11),2)=0)) Count the # of alternate* cells in a row range, eg: B1:K1 *starting with the leftmost cell in the range (ie B1) =SUMPRODUCT(--(MOD(COLUMN(B1:K1),2)=0)) And if you want to SUM what's in the alternating cells within the ranges (instead of COUNT the number), just extend the above to: =SUMPRODUCT(--(MOD(ROW(A2:A11),2)=0),A2:A11) =SUMPRODUCT(--(MOD(COLUMN(B1:K1),2)=0),B1:K1) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#8
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
"Max" wrote: "Arby" wrote: how would you count every other cell? One interp .. Count the # of alternate* cells in a column range, eg: A2:A11 *starting with the top cell in the range (ie A2) =SUMPRODUCT(--(MOD(ROW(A2:A11),2)=0)) Count the # of alternate* cells in a row range, eg: B1:K1 *starting with the leftmost cell in the range (ie B1) =SUMPRODUCT(--(MOD(COLUMN(B1:K1),2)=0)) And if you want to SUM what's in the alternating cells within the ranges (instead of COUNT the number), just extend the above to: =SUMPRODUCT(--(MOD(ROW(A2:A11),2)=0),A2:A11) =SUMPRODUCT(--(MOD(COLUMN(B1:K1),2)=0),B1:K1) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- Ths Max--How would you count everyother nonblank cell? |
#9
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
Just make it as:
=SUMPRODUCT((MOD(ROW(A2:A11),2)=0)*(A2:A11<"")) =SUMPRODUCT((MOD(COLUMN(B1:K1),2)=0)*(B1:K1<"")) ("add" in the extra condition to check for non-blanks within the range) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Arby" wrote: Ths Max--How would you count everyother nonblank cell? |
#10
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
"Max" wrote: Just make it as: =SUMPRODUCT((MOD(ROW(A2:A11),2)=0)*(A2:A11<"")) =SUMPRODUCT((MOD(COLUMN(B1:K1),2)=0)*(B1:K1<"")) ("add" in the extra condition to check for non-blanks within the range) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Arby" wrote: Ths Max--How would you count everyother nonblank cell? I am getting a circular refence error when i replace A1:A10 with H3:H795 which is my range--any ideas--Thx? |
#11
Posted to microsoft.public.excel.misc
|
|||
|
|||
count
Place the formula in a cell outside the range
- this is the normal assumption <g -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Arby" wrote: I am getting a circular reference error when i replace A1:A10 with H3:H795 which is my range--any ideas--Thx? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need formula to count spinoffs | Excel Worksheet Functions | |||
Subtotals by count | Excel Discussion (Misc queries) | |||
Count consecutive dates only | Excel Discussion (Misc queries) | |||
Count Position of Filtered TEXT cells in a column | Excel Worksheet Functions | |||
Count Position of Filtered TEXT cells in a column | Excel Worksheet Functions |