+ Reply to Thread
Results 1 to 11 of 11

Hlookup formula - multiple criteria

  1. #1
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Hlookup formula - multiple criteria

    Hi Guys

    Can't seem to figure this out
    In attached sheet3 ... I am looking for vba to populate cell C2 with a hlookup formula to give me the price of A2 from Supplier B2 found on sheet2...So that when the Supplier is changed - from drop down the price changes...Really stumped lol
    Any ideas
    Attached Files Attached Files
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Hlookup formula - multiple criteria

    Formula would be something like:

    =INDEX(Sheet2!$A$2:$I$3,MATCH(A2,Sheet2!$B$2:$B$3,0),MATCH(B2,Sheet2!$A$1:$I$1,0))
    Rory

  3. #3
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Hlookup formula - multiple criteria

    I had a similar idea to rorya using vlookup/match
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Hlookup formula - multiple criteria

    You are a star ... tx rorya

    You too... tx danielexcelvba

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Hlookup formula - multiple criteria

    Hey guys...Help with adapting making use of lastrow in range...

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Hlookup formula - multiple criteria

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Hlookup formula - multiple criteria

    Since you mentioned you're doing this in vba, I'm guessing you're trying to fill up column C on sheet 3 with these formulas? If so, try something like
    Please Login or Register  to view this content.

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Hlookup formula - multiple criteria

    rorya...I suck with formulas ... last question....
    B2 is actually Range("B" & nr)
    Can you incorporate pretty please ...

  9. #9
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Hlookup formula - multiple criteria

    Please Login or Register  to view this content.
    Could simplify using R1C1 references.

  10. #10
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Hlookup formula - multiple criteria

    That's good guys...Solved...thanks a mill

  11. #11
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Hlookup formula - multiple criteria

    Hey there guys...

    Need to change this code to make use of ws2.name...
    i.e Set ws2 = Sheets("Master Material") and replace
    Please Login or Register  to view this content.
    Edit...

    All good now ... tx
    Please Login or Register  to view this content.
    Last edited by sintek; 08-21-2018 at 01:55 PM.

+ 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. [SOLVED] Using multiple Hlookup in a formula, get rid of long formulas
    By mexiro in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-04-2017, 04:29 PM
  2. Replies: 4
    Last Post: 04-14-2017, 05:14 PM
  3. Multiple criteria & hlookup formula help
    By perera3112 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2014, 05:27 AM
  4. Hlookup using multiple Criteria
    By dave.p.88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-12-2014, 08:06 AM
  5. [SOLVED] Excel 2007 : Hlookup if two criteria are matched
    By CatherineCarey in forum Excel General
    Replies: 3
    Last Post: 04-25-2012, 02:37 PM
  6. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  7. hlookup and multiple criteria sumproduct to analyze text and dates
    By cdl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2008, 09:12 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