![]() |
Count zero values before specific date
I have tried looking up other peoples questions, but they only want to count
the number that arent zero! I need to count the number of days of zero sales up to the date I have data for e.g. 21/4/08. Salesperson 1 Date Product A Product B Total 18/4/08 0 0 0 19/4/08 5 1 6 20/4/08 0 0 0 21/4/08 10 4 14 22/4/08 0 23/4/08 0 etc until end of year The Total column is a simple formula adding Prod A + B together and copied down to the end of the year. Ive tried using =SUMPRODUCT(--(d3:d296<1)), but obviously this just counts every zero value formula to the end of the year. If anyone can help, Id be forever grateful. I have 35 sales people to do this for, on a rolling basis, all year! Thanks in advance Lesg46 |
Count zero values before specific date
Try: =SUMPRODUCT((B3:B296<"")*(C3:C296<"")*(D3:D296=0 ))
-- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "lesg46" wrote: I have tried looking up other peoples questions, but they only want to count the number that arent zero! I need to count the number of days of zero sales up to the date I have data for e.g. 21/4/08. Salesperson 1 Date Product A Product B Total 18/4/08 0 0 0 19/4/08 5 1 6 20/4/08 0 0 0 21/4/08 10 4 14 22/4/08 0 23/4/08 0 etc until end of year The Total column is a simple formula adding Prod A + B together and copied down to the end of the year. Ive tried using =SUMPRODUCT(--(d3:d296<1)), but obviously this just counts every zero value formula to the end of the year. If anyone can help, Id be forever grateful. I have 35 sales people to do this for, on a rolling basis, all year! Thanks in advance Lesg46 |
Count zero values before specific date
You were partially correct:
=SUMPRODUCT((A3:A296<"")*(D3:D296=0)) The test on column A removes counts for which no date has been entered yet. -- Gary''s Student - gsnu200787 "lesg46" wrote: I have tried looking up other peoples questions, but they only want to count the number that arent zero! I need to count the number of days of zero sales up to the date I have data for e.g. 21/4/08. Salesperson 1 Date Product A Product B Total 18/4/08 0 0 0 19/4/08 5 1 6 20/4/08 0 0 0 21/4/08 10 4 14 22/4/08 0 23/4/08 0 etc until end of year The Total column is a simple formula adding Prod A + B together and copied down to the end of the year. Ive tried using =SUMPRODUCT(--(d3:d296<1)), but obviously this just counts every zero value formula to the end of the year. If anyone can help, Id be forever grateful. I have 35 sales people to do this for, on a rolling basis, all year! Thanks in advance Lesg46 |
Count zero values before specific date
Hi Max,
That does work - thank you. However, by using this formula it does mean I have to enter all the zeros in their products sold. Ideally what I'd like to do is leave the cell empty (where they haven't sold anything), and make the number of zeros calculation based on the zero that then appears in the formula column. This is where I got to originally, but then I get the wrong answer as it's looking at the whole year's worth of zero totals. It just makes the sheet look a bit neater if I don't enter 0 where they've sold nothing (as there can be many of these!) Perhaps I wasn't clear in my description originally as I had to put 0's in the product columns to demonstrate what I meant! Gary's student reply (thank you) won't work (although I can see the logic), as I've already pre-filled the year's dates in in Column A. I've probably completely confused the issue now, but thanks so much for helping me out. Lesg "Max" wrote: Try: =SUMPRODUCT((B3:B296<"")*(C3:C296<"")*(D3:D296=0 )) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "lesg46" wrote: I have tried looking up other peoples questions, but they only want to count the number that arent zero! I need to count the number of days of zero sales up to the date I have data for e.g. 21/4/08. Salesperson 1 Date Product A Product B Total 18/4/08 0 0 0 19/4/08 5 1 6 20/4/08 0 0 0 21/4/08 10 4 14 22/4/08 0 23/4/08 0 etc until end of year The Total column is a simple formula adding Prod A + B together and copied down to the end of the year. Ive tried using =SUMPRODUCT(--(d3:d296<1)), but obviously this just counts every zero value formula to the end of the year. If anyone can help, Id be forever grateful. I have 35 sales people to do this for, on a rolling basis, all year! Thanks in advance Lesg46 |
Count zero values before specific date
.. It just makes the sheet look a bit neater if I don't enter 0 where
they've sold nothing (as there can be many of these!) In which case, this would probably suffice: =SUMPRODUCT((B3:B296<"")*(C3:C296<"")) Take a moment to press the "Yes" button below if it helped -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "lesg46" wrote: Hi Max, That does work - thank you. However, by using this formula it does mean I have to enter all the zeros in their products sold. Ideally what I'd like to do is leave the cell empty (where they haven't sold anything), and make the number of zeros calculation based on the zero that then appears in the formula column. This is where I got to originally, but then I get the wrong answer as it's looking at the whole year's worth of zero totals. It just makes the sheet look a bit neater if I don't enter 0 where they've sold nothing (as there can be many of these!) Perhaps I wasn't clear in my description originally as I had to put 0's in the product columns to demonstrate what I meant! Gary's student reply (thank you) won't work (although I can see the logic), as I've already pre-filled the year's dates in in Column A. I've probably completely confused the issue now, but thanks so much for helping me out. Lesg |
Count zero values before specific date
Sorry, dismiss the preceding which is incorrect. Stick with the former. You
have to enter zeros in cols B and C to "denote" the extent. -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
Count zero values before specific date
|
All times are GMT +1. The time now is 09:26 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com