Hi,
I tried searching but couldn't find a relevant thread. I have data where each row has different number of cells containing "A"s and "C"s. For example, row 1 may have 10 "A"s and 2 "C"s. Row 2 may have 5 "A"s and 8 "C"s. A simple CountIf statement can tell me how many A's and C's I have for each row.
Based on this information, I want to replace the "A"s and "C"s cell value with "1"s and "2"s. Only, here I want the "1"s to be the whatever has the highest count and the "2"s be the other. So going with the example above, row one will replace the "A"s with 1 and the "C"s with 2 whereas row two will replace the "A"s with 2 and the "C"s with 1.
It doesn't have to replace the cell value but instead put "1" or "2" into a new cell as long as I can do it for each of the cells in the row (Range).
Bookmarks