ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   if then formula for three (https://www.excelbanter.com/excel-discussion-misc-queries/15489-if-then-formula-three.html)

leah

if then formula for three
 
I have three gas prices of which I'm trying to find the lowest (R,S,T)(in
three different cells). If R is the lowest I want it to return the letter
"C", if S return letter "O", or if T return the letter "Y". I want the
answer to appear in one cell.

Jason Morin

Assuming "R" gas price in A1, "S" price in B1, and "T" in
C1, try:

=CHOOSE(MATCH(MIN(A1:C1),A1:C1,0),"C","O","Y")

HTH
Jason
Atlanta, GA

-----Original Message-----
I have three gas prices of which I'm trying to find the

lowest (R,S,T)(in
three different cells). If R is the lowest I want it to

return the letter
"C", if S return letter "O", or if T return the

letter "Y". I want the
answer to appear in one cell.
.


leah

Works great! Thank you!

"Jason Morin" wrote:

Assuming "R" gas price in A1, "S" price in B1, and "T" in
C1, try:

=CHOOSE(MATCH(MIN(A1:C1),A1:C1,0),"C","O","Y")

HTH
Jason
Atlanta, GA

-----Original Message-----
I have three gas prices of which I'm trying to find the

lowest (R,S,T)(in
three different cells). If R is the lowest I want it to

return the letter
"C", if S return letter "O", or if T return the

letter "Y". I want the
answer to appear in one cell.
.




All times are GMT +1. The time now is 07:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com