=SUMPRODUCT(--(D1:D511=1),--(D2:D512<>1))
=SUMPRODUCT(--(E1:E511=1),--(E2:E512<>1))
=SUMPRODUCT(--(F1:F511=1),--(F2:F512<>1))
=SUMPRODUCT(--(G1:G511=1),--(G2:G512<>1)) and so on.
The first formula is entered in D1 =SUMPRODUCT(--(C1:C511=1),--(C2:C512<>1))
and so on.
Col A B C D E F G H I J K L
1 3 4 2 0 0 0 0 0
2007 A B C D E F G H I J
02-Jan-07 2
3-Jan-07 3 1 1
4-Jan-07 4 1 1
Jan-07 5
Jan-07 8 1 1 1 1
Jan-07 9
Jan-07 10 1
Jan-07 11 1
Jan-07 12
Jan-07 15 1
A B C D E etc are the names of people.
The first line reports 1, correct. The second 3 but should report 2. It is
random where some are correct.
If I put the formula across the sheet, approx 82 people then enter a few 1's
most of the report will be 1's in all cells.
Very confusing for a novice. Any help greatly received.
=SUMPRODUCT(--(C2:C512=1),--(C3:C513<>1))
entered into C1 or D1 and copied across seems to work.
Part of the problem you're having is that your formula references the first row in the previous column and, if the formula in that
cell returns a '1', its value gets added to the total for the next column.
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
"Bryan De-Lara" <bryan.d...@btinternet.com> wrote in message news:%23FLBhAV...@TK2MSFTNGP03.phx.gbl...
Bryan.
"macropod" <inv...@invalid.invalid> wrote in message
news:e1aTswVc...@TK2MSFTNGP05.phx.gbl...
"Bryan De-Lara" <bryan.d...@btinternet.com> wrote in message
news:u53Fc5Vc...@TK2MSFTNGP03.phx.gbl...
Thanks.
Bryan.
"Bernard Liengme" <blie...@stfx.TRUENORTH.ca> wrote in message
news:etuXvQW...@TK2MSFTNGP02.phx.gbl...
If you enter this formula in D1 and drag/copy across you will get better
results.
=SUMPRODUCT(--(C2:C512=1),--(C3:C513<>1))
Just don't have anything in Row1 but the formulas.
Shift everything down by inserting a new row1 for your formulas..
BTW the letters C, D, E etc. are columns.........not rows.
Gord
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
"Bryan De-Lara" <bryan.d...@btinternet.com> wrote in message news:u53Fc5Vc...@TK2MSFTNGP03.phx.gbl...
Bryan, a very happy chappy now....:)
"macropod" <inv...@invalid.invalid> wrote in message
news:OQN$KYbcIH...@TK2MSFTNGP05.phx.gbl...
Thanks for posting back with the results and fix.
Gord