+ Reply to Thread
Results 1 to 12 of 12

Create a list with VLOOKUP?

  1. #1
    Registered User
    Join Date
    12-19-2013
    Location
    13 54636556
    MS-Off Ver
    Excel 2011
    Posts
    30

    Create a list with VLOOKUP?

    Page 1 is presentation- I have a TON of data on a Page 2, Columns A:D down to row 758. Column A is all months- so there could be 30-75 entries of "January", then February and so on.
    january| data1
    january| data2
    january| data3
    february| data1
    february| data2
    On page 1, I have a Validation dropdown menu in cell A1 (the months), then a header in cell A2, then the list should begin. In cell A3 I have the following:
    =VLOOKUP(A1,'page 2'!A:D,2,FALSE)

    This works- its looking at A1, finding it on page 2, then printing whats next to it in column B of the same row. Great! now the hard part:

    I need the next cell down to have the same effect- look at A1, find it on page 2, then print whats next to it in Column B- but I need it to be the next one down until it runs out of matches.
    So, is there a way to make excel say A1 matches- here's B1. Then say A1 matches, but we did that, so does A2 match? yes: then here's B2 (or No, so N/A)

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Create a list with VLOOKUP?

    Put this formula in A3:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    After you enter the formula, do not press ENTER. This is an array formula. Instead, press CTRL+SHIFT+ENTER. If you did it correctly you will see the formula inside {braces} in the formula box.

    Then fill down as many rows as needed.
    Last edited by 6StringJazzer; 09-16-2016 at 01:32 PM. Reason: modified formula to start in Sheet2 row 1 instead of row 2
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Create a list with VLOOKUP?

    Change the 1 to 22 range to be whatever rows you are actually using (change in 3 places)

  4. #4
    Registered User
    Join Date
    12-19-2013
    Location
    13 54636556
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Create a list with VLOOKUP?

    this is almost it!

    There's two problems- and I think I can figure out the second if you can explain the first.

    It is printing, but its printing data that is 3 cells over and 3 cells down from where it catches the match. What i mean is if column A is all dates (which it is), then column D is all different numbers- when it catches the match in column A, it prints the number in D3 rather than D1. The second issue is when I fill down it isn't continuing itself to verify that it would go on to print D4, D5, D6 etc

    Im trying to understand your formula, can you tell me if this layman'd down version is correct? cos I suspect its just a small tweak or something I messed up along the way?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit: appears its doing the 3 over thing cos of the reference of A3 in the INDEX section- bouncing it 3 down. So, the index is creating a table of its own. when I changed that to A1:A760 it started printing line one.

    as for the second problem, you can't seem to flow the function down, because it +1's every cell in the code, which is fine except it also changes the reference cell as well (after =)


    Edit2: with the modifications described it is, from best I can tell, printing all of the column- regardless of matching the dates or not- right direction, wrong execution so far, but I believe its still my understanding of the string.
    Last edited by artistapart; 09-16-2016 at 02:57 PM. Reason: found new information / answers to my questions I think...

  5. #5
    Registered User
    Join Date
    12-19-2013
    Location
    13 54636556
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Create a list with VLOOKUP?

    Quote Originally Posted by 6StringJazzer View Post
    Change the 1 to 22 range to be whatever rows you are actually using (change in 3 places)

    Caught that, thank you-- I don't understand the section ROWS(A$3:A3) what is that referencing?

    edit: appears thats referencing the target cell!
    Last edited by artistapart; 09-16-2016 at 02:35 PM.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Create a list with VLOOKUP?

    I can't tell if you finally got it working or not. If not, I suggest you attach your file then I can update your actual file to make sure I have it working. Then I can explain how it works.

  7. #7
    Registered User
    Join Date
    12-19-2013
    Location
    13 54636556
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Create a list with VLOOKUP?

    Sorry for delay, I didn't want to bother anyone and try to figure it out on my own. I DID getting it working but I've one small glitch I can't seem to get past. It starts the list where I need it to based upon the criteria selected, but it doesn't stop there.

    What I mean is, if I search based on criteria 'February' and the data its polling is as follows:
    January | Potato
    January | Tomato
    January | Lettuce
    February | French Fry
    February | Onion Ring
    March | Toast
    March | Bagel
    March | Croissant
    The data it spits out will be:
    French Fry
    Onion Ring
    Toast
    Bagel
    and so on. When the lines that don't match 'February' should just be blank. hopefully that makes sense- I know there's something stupid i'm missing, I just can't find it! Thanks for all your help!!

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Create a list with VLOOKUP?

    Please attach your file with the above data and the formulas you are using.

  9. #9
    Registered User
    Join Date
    12-19-2013
    Location
    13 54636556
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Create a list with VLOOKUP?

    Attached.

    In the sample, we select district by dropdown in A2, which should generate the stores in cells A9+. What is happening is its repeating the first store it finds.

    second problem, when you select store in cell D2, it should generate the employees of that store in cells D9+, this it IS doing properly, however it doesn't STOP when it runs out of employees- its simply continuing on from the master list of data.

    Thanks for your continued help!
    Attached Files Attached Files

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

    Re: Create a list with VLOOKUP?

    A solution for the first problem is the following array entered formula* :
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *1) Paste the formula into Summary!A10,
    2) press F2,
    3) press Ctrl, Shift and Enter simultaneously,
    4) copy down as far as needed.
    As to the second problem I didn't find corresponding codes in Summary!D3 or Summary!D5 and Key!K:K, so I can't say how to fix the problem.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Registered User
    Join Date
    12-19-2013
    Location
    13 54636556
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Create a list with VLOOKUP?

    what a difference a $ makes. Working now. +++++ REP

    thank you!
    Last edited by artistapart; 09-26-2016 at 12:15 PM.

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

    Re: Create a list with VLOOKUP?

    You're Welcome, thank you for the feedback and marking the thread as solved. I hope that you have a blessed day.

+ 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. Create complex shopping list with vlookup
    By dase in forum Excel General
    Replies: 3
    Last Post: 03-29-2016, 01:10 PM
  2. [SOLVED] use vlookup to create a dropdown list
    By Dragman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2014, 07:05 PM
  3. [SOLVED] Create List Using VLOOKUP
    By RyanFletcher in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-10-2013, 11:22 AM
  4. Replies: 8
    Last Post: 08-14-2013, 09:22 PM
  5. VLookup - Create price list from dropdown bar
    By intrepidtravler in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2013, 04:40 PM
  6. How to create a vlookup to work with a drop down list
    By Breezey in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-07-2007, 04:24 PM
  7. VLOOKUP to Create List
    By EJS in forum Excel General
    Replies: 6
    Last Post: 12-06-2006, 06:16 PM

Tags for this Thread

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