+ Reply to Thread
Results 1 to 18 of 18

vlkooup to return multiple values

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Exclamation vlkooup to return multiple values

    I'm trying to work out what formula which will be in column C to return values from column Q. please help
    Attached Files Attached Files
    Last edited by midra22; 08-09-2013 at 06:24 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: vlkooup to return multiple values

    Hi and welcome to the forum

    In a few cases, you have multiple (different) values for a category (A=1 and A=2) Whioch 1 would you want returned?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    Hi,
    SORRY I meant column A is location a,a,b,b,c,c,d,d column E are locations but not all of them apper twice a,a,b,b,c,,d. I f location C appears only once i need the second C in A column to say "empty"

  4. #4
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    Quote Originally Posted by midra22 View Post
    Hi,
    SORRY I meant column A is location a,a,b,b,c,c,d,d column E are locations but not all of them apper twice a,a,b,b,c,,d. I f location C appears only once i need the second C in A column to say "empty"
    maybe attachment explains it better?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: vlkooup to return multiple values

    OK I suggest you put your expected answer on that table and show how you got the answers, and then upload again please

  6. #6
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    in columnB i have formula =IFERROR(VLOOKUP(A1,E1:F9,2,FALSE),"E") than Ctrl+Shift and Enter
    Last edited by midra22; 08-09-2013 at 04:51 PM.

  7. #7
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    this is what i need to get

    A B E F

    a 1 a 1
    a 2 a 2
    b 1 b 1
    b E c 1
    c 1 c 2
    c 2 d 1
    d 1 d 2
    d 2 e 1
    e 1 f 1
    e E
    f 1
    Last edited by midra22; 08-09-2013 at 05:16 PM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: vlkooup to return multiple values

    did you attach your updated workbook?

  9. #9
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    my first column "A" are locations in column "B" i need a value from "F" which is product name. Column A are all locations in the warehouse but column E only locations that have product in them.

  10. #10
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    excel.xlsx is this any good?

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: vlkooup to return multiple values

    not at all, sorry

    It shows an answer but in no-way explains how you arrived at it. As I said before, you have, for instance, 2 values for A, why is "1" the answer for the 1st A and "2" the answer for the 2nd A...why is '1" notthe answer for both? Also, now you suddenly have "E" in there too, where did that come from??

    Keep in mind that what may be as clear as day for you, is not so obvious for others that have no knowledge about what you are doing

  12. #12
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    SORRY for not being clear please look at this attachment which is my work document im trying to get info to column C from Q
    Attached Files Attached Files

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: vlkooup to return multiple values

    1st, you dont need to use an array formula for this {}
    2nd you need to absolute the range so it doesnt change as you copy down...
    =IFERROR(VLOOKUP(B3,$P$3:$S$2148,2,FALSE),"EMPTY LOCATION")

    OR if you can have identical headings in each table, you could use this - you then will not need to adjust for subsequent columns as you copy across...

    =IFERROR(INDEX($P$2:$S$14,MATCH($B3,$P$2:$P$14,0),MATCH(C$2,$P$2:$S$2,0)),"EMPTY LOCATION")

  14. #14
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    just tried both, and aren't working, in SKU column it returnes the same products where should br different

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: vlkooup to return multiple values

    see the attached
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    PLEASE see attachment I highlighted where is an issue, sorry I'm a pain
    Attached Files Attached Files

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: vlkooup to return multiple values

    OK i see the duplicate locations. AGAIN I ask...

    Quote Originally Posted by FDibbins View Post
    As I said before, you have, for instance, 2 values for A, why is "1" the answer for the 1st A and "2" the answer for the 2nd A...why is '1" not the answer for both?

  18. #18
    Registered User
    Join Date
    08-09-2013
    Location
    corby
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlkooup to return multiple values

    because on the system location is set up to hold two product thats why I've got location repeated twice so I can see which products are there and if is only one product then 2nd location will say empty

+ 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] Return value if within range, return multiple values if ranges overlap
    By cde1983 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2013, 06:16 AM
  2. Replies: 5
    Last Post: 08-04-2013, 09:49 AM
  3. How to find closest values in multiple columns and return adjacent values.
    By Patrician in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 01:47 PM
  4. Return Multiple Values with multiple rows & multiple columns
    By sachin parab in forum Excel General
    Replies: 2
    Last Post: 11-05-2012, 10:21 AM
  5. Replies: 2
    Last Post: 07-17-2012, 11:53 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