As Scott Craner
says, which version? Which program even? Well, I'll forge forth...
Use something like the following. The approach is valid and can be adapted to version and/or program. And while I will use today's Excel, each thing done has older ways of doing it that you can adapt each bit for.
Use: (no need for a helper column, just insert where the final answer is desired)
=LET( MaxBid, MAX(FILTER($D$2:$D$7,$C$2:$C$7=C2)), NameBid, FILTER($D$2:$D$7,$C$2:$C$7=C2),
IF(D2<>MaxBid, "Loser", IF(COUNTA(NameBid)>1, "Tied", "Winner" ) ))
(Obviously, adjust cell references to fit the real ranges.)
The basic approach is to first isolate on each name in the list, so you have an output for every line, but to use MAX()
to find the highest bid value for each name, whatever it might be, and in the form of an internal array that the formula makes use of. Once you have the high bid for each name, each line's name is tested for win, tie, or lose vs. that MaxBid that the name has. If the bid for that line is not the MaxBid value, it is by definition a loser and the oouter IF()
outputs that. If it DID match the highest bid, the inner IF()
tests to see if more than one occurrence of the MaxBid exists. If so, it outputs "Tied" and if there are NOT more than one occurrences, it outputs "Winner" which covers all the possible ways for it to play out.
If you cannot use LET()
(you don't have it, or perhaps it's users who may not have it, just replace the names it uses with the formula pieces it is given for their outputs. If you don't have FILTER()
, you can easily replace it as there are several "old" ways of doing its work. If you don't ahve SPILL
functionality, use {CSE} array entry instead. And if you only have Google, not Excel, it's probably even easier to substitute techniques.
If one knew what your program situation really were, there'd be a LOT mor eincentive to just provide a finished formula instead of "edit this and paste that" vagueness. Ah well.
=IF(A2="","",IF(E2=D2,"Tied",IF(E2>D2,"winner","loser")))
,, hope this work for you !