+ Reply to Thread
Results 1 to 6 of 6

Using VLOOKUP to get multiple values from another sheet.

  1. #1
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Using VLOOKUP to get multiple values from another sheet.

    Hello everyone,

    So I have this problem which I face with the attached form.
    when I fill in the data in sheet "PL_FORM" it's automatically transferred to the sheet "AS_FORM" as you can see in the attached file, it gives the data along with all its information (STYLE, COLOR, SIZE, and NUMBER OF PIECES). BUT my problem is with the rows as in row no. 14 in sheet "PL_FORM", I have two sizes and two number of pieces in the same box (here box no. 1 and 5) but I only get the first size and the first number of pieces; that's why I have to go to the sheet "AS_FORM" and insert a new row and copy-paste the correct date from "PL_FORM" to "AS_FORM"; and honestly it takes forever to do it because sometimes I have more than 200 box and I have to check them all one by one.

    Can you please help me with this?

    Thanks in advance.

    Cheers.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-08-2012
    Location
    Panama City, FL
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: Using VLOOKUP to get multiple values from another sheet.

    My first thought is to either have a size column following B and C so each row can only have a single column for each size (and you wouldn't need sever columns for sizes, you could have size codes 1-7 or us the alphanumeric text). Or you could change the style to have an additional two characters by adding "-1" for Small, "-2" for Medium, etc. Then each would be unique.

  3. #3
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Re: Using VLOOKUP to get multiple values from another sheet.

    I'm sorry but I'm not sure that I understand what you meant? would you please clarify it on the form?

    thank you!

  4. #4
    Forum Contributor
    Join Date
    06-08-2012
    Location
    Panama City, FL
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: Using VLOOKUP to get multiple values from another sheet.

    Here's a sample of what I was thinking . . .
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Re: Using VLOOKUP to get multiple values from another sheet.

    unfortunately, I can't use the form which you've suggested because my costumer needs both PL_FORM and AS_FORM as they are; these are forms which I can't change anything with them because if I do it'll give a huge problem in their systems.

    Thank you very much for your suggestion anyway

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Using VLOOKUP to get multiple values from another sheet.

    If you add a helper column to the one already on the PL_Form sheet then this might work:
    1. The helper column is populated using: =SUM(O13,MAX(1,COUNT(D14:J14)))
    2. On the AS_Form sheet the Box Nr. column is populated using: =INDEX(PL_FORM!A$14:A$112,AGGREGATE(15,6,(ROW(A$14:A$112)-ROW(A$13))/(PL_FORM!O$14:O$112>=ROWS(A$1:A1)),1))
    3. The Style and Colour columns are populated using: =IF($A4=0,"",INDEX(PL_FORM!B$14:B$112,MATCH($A4,PL_FORM!$A$14:$A$112,0)))
    4. The Size column is populated using: =IF(A4=0,"",INDEX(PL_FORM!D$13:J$13,AGGREGATE(15,6,(COLUMN(D$1:J$1)-COLUMN(C$1))/(PL_FORM!A$14:A$112=A4)/(PL_FORM!D$14:J$112<>""),COUNTIFS(A$4:A4,A4))))
    5. The Number of Pieces column is populated using: =SUMPRODUCT((PL_FORM!A$14:A$112=A4)*(PL_FORM!D$13:J$13=D4)*(PL_FORM!D$14:J$112))
    6. Columns G, I, J are populated, from row 5 down, using formulas similar to: =IF(A5>=A4,G4,"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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 for another sheet and returning values from multiple rows?
    By crybloodwing in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2019, 12:51 PM
  2. If (multiple values) and vlookup (based on answer to multiple values)
    By MaverickSemperFi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-30-2018, 07:26 AM
  3. Replies: 1
    Last Post: 07-04-2015, 06:25 AM
  4. Replies: 1
    Last Post: 04-20-2015, 03:18 PM
  5. Replies: 13
    Last Post: 10-13-2014, 02:00 AM
  6. [SOLVED] Average of multiple vlookup values from another sheet
    By lostinmsexcel in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-17-2014, 12:53 PM
  7. Create VLOOKUP or INDEX/MATCH to copy values from Sheet 2 to Sheet 1
    By leog1969 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-03-2013, 05:58 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