+ Reply to Thread
Results 1 to 7 of 7

Looking to compare three columns for the cheapest price

  1. #1
    Registered User
    Join Date
    08-07-2009
    Location
    Dublin, California
    MS-Off Ver
    Excel 2003
    Posts
    18

    Looking to compare three columns for the cheapest price

    I have a spreadsheet that contains 1300 rows. Each row has three columns of data. Each column has a price from a different vendor.

    I would like to compare the three prices for each column to see which vendor is the cheapest.

    Item# Vendor 1 Vendor 2 Vendor 3 Cheapest
    Books $135 $110 $200 What formula would I put here for each row to find out the cheapest vendor for each item?
    Bands $55 $10 $35 What formula would I put here for each row to find out the cheapest vendor for each item?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Looking to compare three columns for the cheapest price

    =INDEX($A$1:$C$1,0,MATCH(MIN(A2:C2),A2:C2)) for Row 2 and drag down
    Last edited by Ace_XL; 07-05-2012 at 02:43 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Looking to compare three columns for the cheapest price

    =index($B$1:$D$1,Match(Min($B2:$D2),$B2:$D2,0))

    copied down

    where B1:D1 contain the vendor names, and B2:D2 have first set of prices.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Looking to compare three columns for the cheapest price

    ....deleted..... oops

  5. #5
    Registered User
    Join Date
    08-07-2009
    Location
    Dublin, California
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Looking to compare three columns for the cheapest price

    How do I use conditional formatting to highlight the cell that has the lowest number if it matches the column that found the lowest price using =MIN(H2:J2) to find the lowest price?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Looking to compare three columns for the cheapest price

    Use conditional formula:

    =H2=MIN($H2:$J2)

  7. #7
    Registered User
    Join Date
    08-07-2009
    Location
    Dublin, California
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Looking to compare three columns for the cheapest price

    Now,


    Can I color code each column so that each vendor has a different color and when I use the conditional formatting option for the last column, it not only brings up the lowest price, but then color codes it to the color for each vendor?

    Ive tried changing the code, but it keeps coloring all of the selected cells.
    =H2=MIN($H2:$J2)
    =I2=MIN($H2:$J2)
    =J2=MIN($H2:$J2)

    Excel 2003

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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