+ Reply to Thread
Results 1 to 16 of 16

Comparison of Multiple numeric colums with result in text

  1. #1
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Comparison of Multiple numeric colums with result in text

    I want to do the comparison of 5 companies for multiple destinations and find out the cheapest rate among them BUT in the last column I want the company name instead of the cheapest rate. (I've attached the file so its easy to understand.)


    Can someone please tell me the formula for that?



    Thanks & Regards
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    10-17-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013, 2016, 2019, 365
    Posts
    294

    Re: Comparison of Multiple numeric colums with result in text

    Suppose Company names are in C1:G1 and prices are in C2:G2, then
    Please Login or Register  to view this content.
    This finds the location of the lowest value using MIN in MATCH, then uses INDEX to pick the corresponding value out of the co names.

  3. #3
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text

    Quote Originally Posted by outofthehat View Post
    Suppose Company names are in C1:G1 and prices are in C2:G2, then
    Please Login or Register  to view this content.
    This finds the location of the lowest value using MIN in MATCH, then uses INDEX to pick the corresponding value out of the co names.


    Thanks. It works with 2 colums, but i need it to work with 5. I've converted it to the following

    =INDEX(D4:E4:F4:G4,H4,1,MATCH(MIN(D6:E6:F6:G6:H6),D6:E6:F6:G6:H6,0))

    but its not giving any results.


    I've attached the excel sheet, please guide me as to what i;m doing wrong.


    thanks.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-01-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    182

    Re: Comparison of Multiple numeric colums with result in text

    Please Login or Register  to view this content.
    You were just giving the wrong range... the range has to be the entire range from starting point to end point
    Last edited by inayat; 09-13-2011 at 04:58 AM.

  5. #5
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text

    Quote Originally Posted by inayat View Post
    Please Login or Register  to view this content.
    You were just giving the wrong range... the range has to be the entire range from starting point to end point

    lolz...oke... thanks. it works now

  6. #6
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text

    one small question, as i'm comparing like 40 lines, when i copy paste the formule, its not working. what to do?

    Original formula.
    =INDEX(D4:H4,1,MATCH(MIN(D33:H33),D33:H33,0))


    Changed formula
    =INDEX(D5:H5,1,MATCH(MIN(D34:H34),D34:H34,0))


    where the range D4:H4, should remain fixed. Please guide.

  7. #7
    Forum Contributor
    Join Date
    08-01-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    182

    Re: Comparison of Multiple numeric colums with result in text

    Please Login or Register  to view this content.
    We just needed to freeze the Company Names data by using the dollar sign...

  8. #8
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text

    One small query, what if the two colums we are comparing have the same value? I'm comparing 5 columns and two of them have the same value BUT the name which is coming is the first one (the one which is in the first column).


    PLEASE HELP.

  9. #9
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text

    Please can someone help

  10. #10
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text

    Please....someone help...

  11. #11
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Comparison of Multiple numeric colums with result in text

    Hi,
    You need to tell us what the result should be given the condition you describe.
    We are good but not psychic.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  12. #12
    Registered User
    Join Date
    10-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003, 2007 & 2010
    Posts
    88

    Re: Comparison of Multiple numeric colums with result in text

    Hope the attached helps. I've added conditional formatting to alert duplicate minimum rates.
    Attached Files Attached Files

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Comparison of Multiple numeric colums with result in text

    Yes,

    I understand which are the duplicates but what do you want to do about them? If you want to highlight them the following conditional format in D6 and applied to D6:H6 would do that.

    Please Login or Register  to view this content.
    Regards

  14. #14
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text

    Quote Originally Posted by Sofistikat View Post
    Hope the attached helps. I've added conditional formatting to alert duplicate minimum rates.

    Thanks but its not working. In the attachment as well, company 2 & 5 have the same rates but the result shows Company 2 as teh cheapes.

  15. #15
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text

    Quote Originally Posted by Richard Buttrey View Post
    Yes,

    I understand which are the duplicates but what do you want to do about them? If you want to highlight them the following conditional format in D6 and applied to D6:H6 would do that.

    Please Login or Register  to view this content.
    Regards

    what i want to do is that if 2 companies have the same rate, the result can show both of their names. Is it possible?

  16. #16
    Registered User
    Join Date
    04-08-2010
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Comparison of Multiple numeric colums with result in text


+ 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