I have a dataset of 3000 lines. I am trying to count how many times various sets of criteria occurs in that data.
When fully constructed there would be hundreds of COUNTIFS conditions. I have written a couple COUNTIFS formula but i dont know how to join them together and put all the COUNTIFS statements into one cell so that the counting works correctly.
Or even if the approach of writing hundreds of COUNTIFS into one cell is the correct way to approach this. Once the 100 COUNTIFS statements were in the cell i would drag the formula down/up.
There are 8 conditions to check for in each set
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"LESS THAN 150",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"150-175",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"176-200",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"201-225",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"226-250",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"252-275",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"276-300",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"GREATER THAN 300",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"LESS THAN 150",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"150-175",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"176-200",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"201-225",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"226-250",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"252-275",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"276-300",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"GREATER THAN 300",A$2:A16,"<="&A15,E$2:E16,1)
One formula byitself works, but when i try to join more than one COUNTIFS together i cant get it to accept the way its written.
i have tried =COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"LESS THAN 150",A$2:A16,"<="&A15,E$2:E16,1),COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"150-175",A$2:A16,"<="&A15,E$2:E16,1)
But formula not accepted. Says Value in the box. the comma , after each COUNTIFS does not seem to work.
The top example is for Vicky, I would do same for Emma, and then Ronny etc until id written all the formulas for the various people.
I am trying to put the COUNTIFS formula into cell Column H.
I am trying to count number of sales in Column E. Those cells are populated with 0 or 1
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of LESS THAN 150, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 150-175, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 176-200, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 201-225, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 226-250, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 252-275, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 276-300, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band oF GREATER THAN 300, The date is equal to or less than the current date.
When fully constructed there would be hundreds of COUNTIFS conditions. I have written a couple COUNTIFS formula but i dont know how to join them together and put all the COUNTIFS statements into one cell so that the counting works correctly.
Or even if the approach of writing hundreds of COUNTIFS into one cell is the correct way to approach this. Once the 100 COUNTIFS statements were in the cell i would drag the formula down/up.
There are 8 conditions to check for in each set
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"LESS THAN 150",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"150-175",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"176-200",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"201-225",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"226-250",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"252-275",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"276-300",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"GREATER THAN 300",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"LESS THAN 150",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"150-175",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"176-200",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"201-225",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"226-250",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"252-275",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"276-300",A$2:A16,"<="&A15,E$2:E16,1)
=COUNTIFS(B$2:B16,"="&F15,F2:F16,"EMMA",G$2:G16,"GREATER THAN 300",A$2:A16,"<="&A15,E$2:E16,1)
One formula byitself works, but when i try to join more than one COUNTIFS together i cant get it to accept the way its written.
i have tried =COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"LESS THAN 150",A$2:A16,"<="&A15,E$2:E16,1),COUNTIFS(B$2:B16,"="&F15,F2:F16,"VICKY",G$2:G16,"150-175",A$2:A16,"<="&A15,E$2:E16,1)
But formula not accepted. Says Value in the box. the comma , after each COUNTIFS does not seem to work.
The top example is for Vicky, I would do same for Emma, and then Ronny etc until id written all the formulas for the various people.
I am trying to put the COUNTIFS formula into cell Column H.
I am trying to count number of sales in Column E. Those cells are populated with 0 or 1
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of LESS THAN 150, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 150-175, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 176-200, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 201-225, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 226-250, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 252-275, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band of 276-300, The date is equal to or less than the current date.
I am trying to count how many sales Column E Vicky has had when she is in the data1 column C band oF GREATER THAN 300, The date is equal to or less than the current date.
Date Column A | SALES HOME MEMBER ColumnB | SALES AWAY MEMBER Column C | DATA1 Column D | sale Column E | SELECTED SALES HOME MEMBER Column F | DATA1 BAND Column G | NUMBER occurrences Column H |