+ Reply to Thread
Results 1 to 2 of 2

Whichever is greater, return coloum name

  1. #1
    Registered User
    Join Date
    07-11-2015
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    10

    Whichever is greater, return coloum name

    I have 2 plans and I have to choose whichever cost less.

    A B C
    Plan A Plan B Choice
    $50 $100 Plan A

    What formula should I put in C3 if I want to return the Column name of the cheaper plan?
    (e.g. In this case, Plan A costs $50 and B cost $100, therefore, show "Plan A" in C3.)

    Thank you!
    Last edited by sumlovephoto; 09-06-2015 at 11:06 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Whichever is greater, return coloum name

    I can think of 2 simple options..
    =INDEX($A$1:$B$1,MATCH(MIN(A2:B2),A2:B2,0))
    =IF(B2<A2,$B$1,A1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula: % or set number, whichever is greater - please help
    By trayep in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2014, 08:54 AM
  2. [SOLVED] Return value from whichever of three cells is populated
    By johnmitch38 in forum Excel General
    Replies: 8
    Last Post: 09-14-2012, 07:51 AM
  3. Equals the result of a formula or a chosen number... whichever is greater
    By wpitts in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2011, 01:06 PM
  4. Replies: 2
    Last Post: 11-25-2010, 12:26 AM
  5. [SOLVED] How: List in col D whichever number greater; B4 or varying # in Co
    By Building Model Sailboats is great fun in forum Excel General
    Replies: 3
    Last Post: 02-08-2006, 08:45 PM
  6. display actual number or zero, whichever is greater
    By cfiser in forum Excel General
    Replies: 5
    Last Post: 12-02-2005, 12:35 PM
  7. whichever is greater
    By emerald_dragonfly in forum Excel General
    Replies: 5
    Last Post: 07-03-2005, 10:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1