+ Reply to Thread
Results 1 to 5 of 5

HLOOKUP cheapest value from multiple rows

  1. #1
    Registered User
    Join Date
    08-17-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    HLOOKUP cheapest value from multiple rows

    Hi.
    I'm trying to do an excel spreadsheet for my work that will show which supplier that we buy from is the cheapest. Where in sheet1 I have 2 combo boxes. ComboBox 1 in cell C4 has Screws/Bolts. In ComboBox 2 (D4), it has whatever screws or Bolts appears in that category. In Sheet 2 and 3 I have all the different types of screws/bolts listed in Column A and in every other column I have that particular screw/bolt as priced from each different supplier. For example, column B = 1st Suppliers price, Column C = Date (that it was priced), Column D = 2nd Suppliers price, Column E = Date (that it was priced), etc,etc. What I am trying to achieve is a formula to say IF the first ComboBox (C4) is "screws" then lookup ComboBox 2 (D4) as to what type of screw it is. And look at sheet 2 or 3 as to who might be the cheapest and return that Value (whilst ignoring the dates in every other column). How would I go about doing that?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: HLOOKUP cheapest value from multiple rows

    At first blush this sounds doable, but we'd need to be working in your actual workbook to get the formula right.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-17-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: HLOOKUP cheapest value from multiple rows

    Okay I have attached a example workbook. Obviously I have stuffed around with the prices so they won't be accurate but the idea is still there. I'm hoping to be able to include the Supplier and the Date as well.Screws2.xlsm

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: HLOOKUP cheapest value from multiple rows

    Like so...

    1) I removed the blank rows on your resource sheets.
    2) I removed the hidden lists in column G, unneeded and require manual maintenance, we can do better.
    3) Column A of each resource sheet is now used dynamically as the "source" for the drop downs in column B of the Main.
    4) All resource sheets have 3 new columns added (B:D) that is collecting the cheapest price for you from each row, in advance.
    If more than one supplier offers the lowest price, the FIRST vendor will be returned. So order your vendor by preference from left to right.


    There is no VBA in this solution at all, we are using standard Data Validation drop downs and formulas.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-17-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: HLOOKUP cheapest value from multiple rows

    Looks good. Thanks heaps for that.

+ 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. Macro to highlight value of cheapest supplier ?
    By makinmomb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2014, 11:44 PM
  2. [SOLVED] Cheapest supplier 3 columsn , 2 I know
    By makinmomb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2014, 01:55 PM
  3. Whats the Cheapest part?
    By stogie12 in forum Excel General
    Replies: 1
    Last Post: 08-12-2012, 05:58 PM
  4. HLOOKUP Multiple Rows
    By njfeathe85 in forum Excel General
    Replies: 6
    Last Post: 08-19-2011, 07:43 AM
  5. cheapest price
    By craigproudfoot in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-10-2005, 02:00 PM

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