With the help of teylyn's answer in my previous question, the lowest value in the row are successfully highlighted. How to get the column letter to be displayed in the last column?
FROM
TO
With the help of teylyn's answer in my previous question, the lowest value in the row are successfully highlighted. How to get the column letter to be displayed in the last column?
FROM
TO
Its ugly...really ugly. But it does work. Put that monstrosity in J4 and copy down.
where to begin with the description, I thought ugly and monstrosity covered it! Basically what the whole formula is doing is checking each number in the row to detemine if it is the minimum in the row. When that condition is true, it returns the value in the header row for that number and tacks on a " & " to it. It then moves on to the next column and performs the same check and adds the results to the previous column. When a number is not the minimum it adds "" to the results which is nothing. After going through all the results and building up a string that will end in "&" we pull the left side of the string, by the length of the string minus 3 characters to remove that last " & ".
Proof of concept
Like said in the comments of Forward Ed's answer, you could shorten the
LEN
-part withCOUNTIF
which would look like this:Still I would prefer the
MID
solution to (partially) skip any check of length like this:The way it works should be pretty obvious. However, if there are any questions left, just ask :)