+ Reply to Thread
Results 1 to 2 of 2

VLOOKUP & Returning Two Pieces of Data

  1. #1
    Registered User
    Join Date
    04-16-2019
    Location
    South Dakota, United States
    MS-Off Ver
    2013
    Posts
    50

    VLOOKUP & Returning Two Pieces of Data

    Good morning everyone,

    I am trying to automate this report and I was able to get the first half completed but i'm stuck on the second half.

    I have a list of orders for the day and I have a spreadsheet with inventory of UPCs that need to ship. The first half of the project looked up all these UPCs, checked them against inventory and came up with a shortage/surplus variance.

    The second half now needs to return two pieces of information - the quantity short and the time it needs to ship.

    For example, on the MB52 tab, line 5 column k (90070247208135) shows a shortage of 15 combos (column N). So I would want column P to show the first shortage and column Q to show the time that first truck should ship that is currently short inventory. It would reference the DockSheet tab and look for the matching UPC code on column J and compare the inventory (column H) to the qty demanded (column I). In this example, row 94 shows a inventory of 0 and a qty of 15 and it ships at 18:30 09/05/2019.

    How could I get this accomplished? There could be multiple shortages at different quantities for various times. For example, row 15 on the MB52 tab shows 2 shortages - one for 11 and another for 20, for a total of 31 for two different times, 18:30 09/05/2019 and 01:30 09/06/2019.

    Probably confusing, let me know if I need to clarify it.

    Thanks all!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-16-2019
    Location
    South Dakota, United States
    MS-Off Ver
    2013
    Posts
    50

    Re: VLOOKUP & Returning Two Pieces of Data

    It does not look like VLOOKUP can handle multiple conditions / return multiple matches. I believe I would need to use a combination of INDEX and MATCH formulas to make this work. I'm confused on how to make it work though. Any suggestions?

+ 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. Using VLOOKUP to Search for Multiple Occurrences with same Lookup Value
    By rosetc16 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-08-2018, 11:30 PM
  2. Replies: 5
    Last Post: 06-22-2015, 03:00 PM
  3. VLOOKUP in a crosswalk multiple occurrences of the same value
    By csutera in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-14-2015, 01:54 PM
  4. How to find multiple occurrences with a vlookup
    By DawsonG in forum Excel General
    Replies: 1
    Last Post: 08-14-2014, 01:11 PM
  5. [SOLVED] VLookup return sum of multiple occurrences
    By excelMTL in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-03-2012, 03:32 PM
  6. [SOLVED] how do I use vlookup for multiple occurrences of the same value
    By Edith F in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 10-13-2011, 06:37 PM
  7. [SOLVED] RE: how do I use vlookup for multiple occurrences of the same value
    By bj in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-27-2005, 06:06 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