View Single Post
  #4  
Old March 6th, 2009, 07:39 AM posted to microsoft.public.excel.newusers
JAT
external usenet poster
 
Posts: 27
Default Find max value from 3 cells, return text, but 2 max values sam

do the empty columns need to be there? if the three columns could have data
side by side, instead of in N, Q, T, the following will get you started:

=IF(COUNTIF(N3:P3,Q3)1,"X",IF(N3=Q3,"SK17",IF(O3= Q3,"EC3",IF(P3=Q3,"PL2"))))

hope that helps,

doing my bit
jat


"Struggling in Sheffield" wrote:

Hi,
I deleted it (!) though I think it was this simple beasty below:

=IF(N3=U3,"SK17",IF(Q3=U3,"EC3",IF(T3=U3,"PL2")))

All this did of course is return the first occuring high value if there were
2 or more. I've chewed over many variations to give an "X" if two (or more)
equal max values occur but to no avail.

"Struggling in Sheffield" wrote:

Hi,
I'm using a simple formula to find and return the maximum value from 3
compared columns (N, Q & T) and place that max value in column U (same row).
Equation in column U is:

=MAX(N3,Q3,T3)

SK17 EC3 PL2 Max Text
N O P Q R S T U V
3 6 5 1 6
4 6 3 3 6
5 5 5 2 5
6 1 4 1 4
7 5 3 5 5
8 2 7 0 7
9 1 1 1 1
10 9 0 4 9

That works fine but my problem is I want to return a text note in column V
based on which column has supplied the max value. However, if the same max
value is in 2 or even all 3 of the checked columns, I need column V to simple
display an "X", as illustrated below.

SK17 EC3 PL2 Max Text
N O P Q R S T U V
3 6 5 1 6 SK17
4 6 3 3 6 SK17
5 5 5 2 5 X
6 1 4 1 4 EC3
7 5 3 5 5 X
8 2 7 0 7 EC3
9 1 1 1 1 X
10 9 0 4 9 SK17

I'm OK until two max values match but then it all falls apart.
As always any advice will be gratefully received.
Thanks,
Steve.