+ Reply to Thread
Results 1 to 4 of 4

Filling in Data Using Vlookup

  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Filling in Data Using Vlookup

    Hi,

    I've done this in the past, but can't remember the exact steps I took - but I recall it wasn't that complex.

    I have a list of zip codes, along with the corresponding number of times I want them to appear. So in a separate area, using formulas, I want 12345 to show up 8 times, and then underneath that 12346 to show up twice, etc. Another way of saying it would be that let's assume someone gave me a hardcoded pivot table summary of a count of zip codes, I want to convert that back into raw data.

    A coworker showed me how to do this once with a vlookup (I want to say it was an approximate match?), but I can't remember what the steps were.

    12345 8
    12346 2
    12347 1
    12348 2

    Thank you!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Filling in Data Using Vlookup

    Enter this array formula in C2 and copy down
    **Must be entered with Ctrl+Shift+Enter key combination.

    ***Array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
    You will know the array is active when you see curly braces { } appear around your formula.
    If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C
    1
    2 12345 8 12345
    3 12346 2 12345
    4 12347 1 12345
    5 12348 2 12345
    6 12345
    7 12345
    8 12345
    9 12345
    10 12346
    11 12346
    12 12347
    13 12348
    14 12348
    15
    Last edited by AlKey; 06-05-2018 at 12:51 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Filling in Data Using Vlookup

    Here's one way that will work in Excel 2003:

    https://www.extendoffice.com/documen...e-x-times.html

  4. #4
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Filling in Data Using Vlookup

    Thanks, this worked!

    I also figured remembered the vlookup method. You build a cumulative counter as your approximate match vlookup column...so for my data, it'd be:

    0 12345
    8 12346
    9 12347
    11 12348

    You can then just make dummy data, with numbers 0, 1, 2, 3, etc going down the column, and then using an approximate match vlookup next to it it fills in the range.

+ 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] Data Prep by Filling in Data Gaps from a Report Download
    By BobZZ in forum Excel General
    Replies: 3
    Last Post: 04-03-2018, 05:30 AM
  2. [SOLVED] Excel 2007 VBA - filling an array element with results from a vlookup
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2015, 09:01 AM
  3. Replies: 7
    Last Post: 06-06-2015, 06:47 PM
  4. Filling down Vlookup completely
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2014, 02:37 PM
  5. Help with vlookup, dates, and filling out a table.
    By ikench in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2013, 11:22 AM
  6. Replies: 2
    Last Post: 07-12-2010, 01:17 PM
  7. filling information from one cell and filling another.
    By Dianne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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