Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
leah
 
Posts: n/a
Default 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.
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

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.
.

  #3   Report Post  
leah
 
Posts: n/a
Default

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.
.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 02:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"