Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
count identical values in 2 rows
I use Excel 2007
I have a table of about 50 columns and 60 rows. Each row must be compared with the first row of the table: Is there a formula, that counts the number of cells in each row that has an identical value with the corresponding cell in the header? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
count identical values in 2 rows
Piet,
Is this what you mean =COUNTIF(B2:AX2,A2) -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "Piet" wrote: I use Excel 2007 I have a table of about 50 columns and 60 rows. Each row must be compared with the first row of the table: Is there a formula, that counts the number of cells in each row that has an identical value with the corresponding cell in the header? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
count identical values in 2 rows
For each row
=SUMPRODUCT(--(A2:AX2<""),--(A2:AX2=$A$1:$AX$1)) and copy dwn -- HTH Bob "Piet" wrote in message ... I use Excel 2007 I have a table of about 50 columns and 60 rows. Each row must be compared with the first row of the table: Is there a formula, that counts the number of cells in each row that has an identical value with the corresponding cell in the header? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
count identical values in 2 rows
Assume that you are having the header value in A1 cell and you want to count
and compare it with the 2nd Row from A2 to AX2 then use the below formula. =COUNTIF(A2:AX2,A1) You can also protect the cell number by adding an $ (Dollar) symbol like the below. =COUNTIF(A$2:AX$2,A$1) Use the above formula other than A1 cell and A2 to AX2 range. -- Remember to Click Yes, if this post helps! -------------------- (Ms-Exl-Learner) -------------------- "Piet" wrote: I use Excel 2007 I have a table of about 50 columns and 60 rows. Each row must be compared with the first row of the table: Is there a formula, that counts the number of cells in each row that has an identical value with the corresponding cell in the header? |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
count identical values in 2 rows
Bob,
thanks for your answer, which helps me a lot. I have to study the function a while as I don't understand the solution, but it works nevertheless fantastic!. Thanks again. Regards, Piet "Bob Phillips" wrote: For each row =SUMPRODUCT(--(A2:AX2<""),--(A2:AX2=$A$1:$AX$1)) and copy dwn -- HTH Bob "Piet" wrote in message ... I use Excel 2007 I have a table of about 50 columns and 60 rows. Each row must be compared with the first row of the table: Is there a formula, that counts the number of cells in each row that has an identical value with the corresponding cell in the header? . |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
count identical values in 2 rows
Mike,
Thanks for your attemt. But it was not were I was looking for. Bob Philips gave me the solution. Thanks for your effort in this. Regards, Piet "Mike H" wrote: Piet, Is this what you mean =COUNTIF(B2:AX2,A2) -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "Piet" wrote: I use Excel 2007 I have a table of about 50 columns and 60 rows. Each row must be compared with the first row of the table: Is there a formula, that counts the number of cells in each row that has an identical value with the corresponding cell in the header? |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
count identical values in 2 rows
Thanks for your attemt. But it was not were I was looking for. Bob Philips
gave me the solution. Thanks for your effort in this. Regards, Piet "Ms-Exl-Learner" wrote: Assume that you are having the header value in A1 cell and you want to count and compare it with the 2nd Row from A2 to AX2 then use the below formula. =COUNTIF(A2:AX2,A1) You can also protect the cell number by adding an $ (Dollar) symbol like the below. =COUNTIF(A$2:AX$2,A$1) Use the above formula other than A1 cell and A2 to AX2 range. -- Remember to Click Yes, if this post helps! -------------------- (Ms-Exl-Learner) -------------------- "Piet" wrote: I use Excel 2007 I have a table of about 50 columns and 60 rows. Each row must be compared with the first row of the table: Is there a formula, that counts the number of cells in each row that has an identical value with the corresponding cell in the header? |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
count identical values in 2 rows
This may help you http://xldynamic.com/source/xld.SUMPRODUCT.html
-- HTH Bob "Piet" wrote in message ... Bob, thanks for your answer, which helps me a lot. I have to study the function a while as I don't understand the solution, but it works nevertheless fantastic!. Thanks again. Regards, Piet "Bob Phillips" wrote: For each row =SUMPRODUCT(--(A2:AX2<""),--(A2:AX2=$A$1:$AX$1)) and copy dwn -- HTH Bob "Piet" wrote in message ... I use Excel 2007 I have a table of about 50 columns and 60 rows. Each row must be compared with the first row of the table: Is there a formula, that counts the number of cells in each row that has an identical value with the corresponding cell in the header? . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I count rows with text values in several columns. | Excel Worksheet Functions | |||
Need a formula to count values in different rows | Excel Worksheet Functions | |||
Looking Up Datas when Key Values are Identical | Excel Worksheet Functions | |||
Lookup of identical values? | Excel Worksheet Functions | |||
Count on multiple values with duplicate rows | Excel Worksheet Functions |