I want to write a function that can compare the values from a row in all the columns. And it prints a defined character for the no. of matches. Like if the 2 matches prints ‘p’, if 3 then ‘q’ and for 4 is ‘r’. So what will be the function?
The representation is a bit like that:
For the column A1 to column D1, it matches 2 characters so the value is ‘p’.
Subsequently, the pattern follows of matches according to this.
I would use FREQUENCY as follows:
entered as an array formula using CtrlShiftEnter
If you were generalising it to more than 4 columns, this might be better: