Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Is there a way of writing an IF function to test the values in 3 cells and
return a message depending on which cell has the highest value? For example if A1 = 1000, B1 = 1500, C1 = 1750. If A1 is has the largest value then I would like a return of "Charlie is leading", if B1 is higher then return "Scott is leading" and if C1 is highest then return "Jason is leading" .....is it possible to write this function? |
#2
![]() |
|||
|
|||
![]()
=IF(MAX(A1,B1,C1)=A1,"Charlie is leading",IF(MAX(A1,B1,C1)=B1,"Scott is
leading","Jason is leading")) "racmb1975" wrote in message ... Is there a way of writing an IF function to test the values in 3 cells and return a message depending on which cell has the highest value? For example if A1 = 1000, B1 = 1500, C1 = 1750. If A1 is has the largest value then I would like a return of "Charlie is leading", if B1 is higher then return "Scott is leading" and if C1 is highest then return "Jason is leading" .....is it possible to write this function? |
#3
![]() |
|||
|
|||
![]()
On further thought, the formula may not always be correct. What if there is
a tie, say both A1 and B1 are equal to 2000? What message do you want to return? "Shatin" wrote in message ... =IF(MAX(A1,B1,C1)=A1,"Charlie is leading",IF(MAX(A1,B1,C1)=B1,"Scott is leading","Jason is leading")) "racmb1975" wrote in message ... Is there a way of writing an IF function to test the values in 3 cells and return a message depending on which cell has the highest value? For example if A1 = 1000, B1 = 1500, C1 = 1750. If A1 is has the largest value then I would like a return of "Charlie is leading", if B1 is higher then return "Scott is leading" and if C1 is highest then return "Jason is leading" .....is it possible to write this function? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Function to count unique values? | Excel Worksheet Functions | |||
Counting Multiple Values In A Cell | Excel Worksheet Functions | |||
Is there way to enter multiple values into excel cells w/ a form? | Excel Discussion (Misc queries) | |||
Date & Time | New Users to Excel | |||
Toggle multiple values in single cell | Excel Worksheet Functions |