Curtis Long
asked on
Excel COUNTIF sorting problem
I have attached a file. In sheet "1" and Sheet "2" I have several names in column A and random "X" in columns B thru V
In sheet "Curtis" I want to add all the Xs in curtis' row. I know I can do this like this: =COUNTIF('1'!B7:V7,"<>"&"" ) Since Curtis in on row 7 and it works fine.
Now if I "Sort" the table on sheet "1" it messes all up.
How can I make it so if I sort the tables the equations still work??
I hope this makes sence.
Experts.xlsx
In sheet "Curtis" I want to add all the Xs in curtis' row. I know I can do this like this: =COUNTIF('1'!B7:V7,"<>"&""
Now if I "Sort" the table on sheet "1" it messes all up.
How can I make it so if I sort the tables the equations still work??
I hope this makes sence.
Experts.xlsx
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That does seem to work.
Thanks!!
Now, can you help me understand how it works so I can implement it?? :-)
Thanks!!
Now, can you help me understand how it works so I can implement it?? :-)
HDM..
The way sum product works that it basically multiply the two numbers and then add those...
Now if you see the first condition it meets the answer is written in Boolean which is 0 or 1 and again if the condition is meet it return the answer again in Boolean and where both the conditions match it gives the answer as 1 and sum all of them as a process as a final result..
Go to formulas-->and evaluate formula to see how its working..let me know if this helps or you looking for more detail description...
Saurabh,,
The way sum product works that it basically multiply the two numbers and then add those...
Now if you see the first condition it meets the answer is written in Boolean which is 0 or 1 and again if the condition is meet it return the answer again in Boolean and where both the conditions match it gives the answer as 1 and sum all of them as a process as a final result..
Go to formulas-->and evaluate formula to see how its working..let me know if this helps or you looking for more detail description...
Saurabh,,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, question, if this
=COUNTIF(INDEX(Table1,MATC H($B6,Tabl e1[Column1 ],0),),"x" )
returns values from a table called "1" and
=COUNTIF(INDEX(Table13,MAT CH($B6,Tab le13[Colum n1],0),)," x")
retuns a value from the next table, what would I use to return a value from a table called "3" or the third table etc??
=COUNTIF(INDEX(Table1,MATC
returns values from a table called "1" and
=COUNTIF(INDEX(Table13,MAT
retuns a value from the next table, what would I use to return a value from a table called "3" or the third table etc??
HDM..Did you had a look over the formula which i provided in the sheet?
Saurabh...
Saurabh...
ASKER
Yes but I am not totally understanding it. I wll try more if it is to hard to explain.
Thanks!!
Thanks!!
Find the names at the formula tab, and use the appropriate one.
This works fine when we sort in the table whose values are being counted.
But, how can we sort in the sheet containing the countif results?
But, how can we sort in the sheet containing the countif results?
=COUNTIF(INDEX(Table1,MATC
And =COUNTIF(INDEX(Table13,MAT
Count-in-table.xlsx