+ Reply to Thread
Results 1 to 10 of 10

V-lookup help

  1. #1
    Registered User
    Join Date
    08-31-2018
    Location
    Manchester
    MS-Off Ver
    office 365
    Posts
    46

    V-lookup help

    Hello all,

    I run a daily report which requires me to manually input LIVE & initial stock data (this doesn't change) columns against the SKU, colour and size (which is a pain)

    Is there something in V-lookup which can pick up the sku, colour and size & pull in the LIVE and initial stock values?

    Cheers in advance for any help

    SKU COLOUR SIZE LIVE DATE INITIAL STOCK

    WF1111 BLACK 6 01/08/2018 2
    WF1111 BLACK 8 01/08/2018 5
    WF1111 BLACK 10 01/08/2018 0

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: V-lookup help

    Whenever I need to do multi criteria lookups I create a helper column concatenating the items you need and then use this for the vlookup.

    I've attached an example.
    Attached Files Attached Files
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    08-31-2018
    Location
    Manchester
    MS-Off Ver
    office 365
    Posts
    46

    Re: V-lookup help

    This is great, how would you pull in the date data?
    Cheers

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: V-lookup help

    ...whereas I prefer NOT to concatenate/use helpers...

    =IFERROR(INDEX(D$2:D$4,MATCH(1,INDEX(($A$2:$A$4=$J$2)*($B$2:$B$4=$K$2)*($C$2:$C$4=$L$2),0),0)),"")

    copied across.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Registered User
    Join Date
    08-31-2018
    Location
    Manchester
    MS-Off Ver
    office 365
    Posts
    46

    Re: V-lookup help

    Thank you both for your help
    Its made my job a little easier

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: V-lookup help

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  7. #7
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: V-lookup help

    Quote Originally Posted by Glenn Kennedy View Post
    ...whereas I prefer NOT to concatenate/use helpers...

    =IFERROR(INDEX(D$2:D$4,MATCH(1,INDEX(($A$2:$A$4=$J$2)*($B$2:$B$4=$K$2)*($C$2:$C$4=$L$2),0),0)),"")

    copied across.
    Horses for courses and a lot of it very much depends on the sheet itself, how it looks, works etc but in my case there's an additional element of future proofing. Often the workbooks I work on are then passed over to non "power" users and they have the ability to amend etc over time. The likes of the above can fill someone with dread and if something goes wrong can mean they lose the functionality until someone more experienced takes a look. I made the same sort of comment in a thread the other day with an array formula, the array solution was a perfect, compact and well executed answer whereas the alternative meant additional columns in the data.The positive of those columns though meant anyone with a basic Excel understanding could work out how the answer was derived and amend/ add to if required.

    In our office we have to try and get a compromise between performance and ease of reading/ understanding in order to reduce potential issues down the line, this often however means losing out on using excellent formulas like the above.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: V-lookup help

    Point taken. Where your formula will prform better (much better) than mine is if you use whole column references. Yours still steams along, whereas mine.. kinda slows up... a lot.

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: V-lookup help

    just to answer your post #3 for what pjwhitfield gave you, adjust the vlookup to this...
    =VLOOKUP(K2&L2&M2,D2:E4,2,FALSE)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  10. #10
    Forum Contributor
    Join Date
    08-14-2018
    Location
    Hanoi, Vietnam
    MS-Off Ver
    2016
    Posts
    118

    Re: V-lookup help

    Or try this
    Please Login or Register  to view this content.
    Where 3 is number of criteria.
    It's not recommend to concatenate all criteria if we have a lot of criteria.
    Last edited by congnt92; 08-31-2018 at 07:59 AM. Reason: adding note

+ 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] Lookup: Lookup employee id and return value in cell x basued on most recent start date
    By jekeith in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-21-2018, 12:56 PM
  2. Replies: 3
    Last Post: 08-23-2017, 07:04 PM
  3. Two Lookup and Return (Lookup the column, then lookup the row)
    By Branbran10 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2015, 04:55 PM
  4. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  5. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  6. Replies: 2
    Last Post: 05-19-2013, 08:46 AM
  7. Replies: 7
    Last Post: 06-19-2011, 12:51 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