Hello There,
I've searched the forum to get assistance on this issue but I don't think any post directly applies to my question.
I am not trying to specify a string in the formula, as although the sample below would indicate that there are only 12 possible variables that can be entered into the cells my actual data is more dynamic. I would like to compare columns and count the number of times adjacent cell are either the same or different.
Kindly assist. Below is my sample data set and expected results.
Looking forward to your replies.
SAMPLE DATA
A1 – January || B1 – March || C1 – March
A2 – January || B2 – January || C2 – March
A3 – March || B3 – April || C3 – April
A4 – January || B4 – January || C4 – January
A5 – April || B5 – April || C5 – May
A6 – December || B6 – December || C6 – December
A7 – February || B7 – March || C7 – March
A8 – March || B8 – March || C8 – March
A9 – March || B9 – March || C9 – March
Compare column A to column B:
Count the number of occurrences in which adjacent cells are the same
Answer should be 6
Count the number of occurrences in which adjacent cells a different
Answer should be 3
Compare column B to column C:
Count the number of occurrences in which adjacent cells are the same
Answer should be 7
Count the number of occurrences in which adjacent cells is different
Answer should be 2
I've searched the forum to get assistance on this issue but I don't think any post directly applies to my question.
I am not trying to specify a string in the formula, as although the sample below would indicate that there are only 12 possible variables that can be entered into the cells my actual data is more dynamic. I would like to compare columns and count the number of times adjacent cell are either the same or different.
Kindly assist. Below is my sample data set and expected results.
Looking forward to your replies.
SAMPLE DATA
A1 – January || B1 – March || C1 – March
A2 – January || B2 – January || C2 – March
A3 – March || B3 – April || C3 – April
A4 – January || B4 – January || C4 – January
A5 – April || B5 – April || C5 – May
A6 – December || B6 – December || C6 – December
A7 – February || B7 – March || C7 – March
A8 – March || B8 – March || C8 – March
A9 – March || B9 – March || C9 – March
Compare column A to column B:
Count the number of occurrences in which adjacent cells are the same
Answer should be 6
Count the number of occurrences in which adjacent cells a different
Answer should be 3
Compare column B to column C:
Count the number of occurrences in which adjacent cells are the same
Answer should be 7
Count the number of occurrences in which adjacent cells is different
Answer should be 2
Last edited: