+ Reply to Thread
Results 1 to 4 of 4

I want to copy information on a spreadsheet to another sheet by using ID numbers

  1. #1
    Registered User
    Join Date
    04-19-2011
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    38

    I want to copy information on a spreadsheet to another sheet by using ID numbers

    Hello all! I have learned a lot today here in the excel forum! I forget how much Love excel until I have to try and create something for work.

    I have attached a copy sheet for an example. Example....

    John Doe
    3 scot st
    Ali, PA, 15001

    SSN 123-45-6789
    DOB 10/22/1987

    John has a unique client ID(as all clients do) Using the client ID, I want the form to fill out John Does info as it shows. THe sreadsheet will show all info on 1 line... ID, First Last Address address1 City State Zip DOB SSN These are the headers and below it will show in one row all in its own cells and show as such... 12345 John Doe 123 main st anywhere FL 32901 12-1-1989 123-45-6789

    By using the ID, I want all the information for that ID to populate in the cells the info is set up to receive. Can this be done, I believe so as anything seems possible with excel! Please open attachment for better understanding.

    Thanks again for all the help!

    Rob
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: I want to copy information on a spreadsheet to another sheet by using ID numbers

    Since you said "Using the Client ID", I put the client ID in A12 (made a dropdown using Data Validation).
    Then you use a combination of VLOOKUPs to pull the individual data

    For example, A13 (John Doe) is
    =IF($A$12,VLOOKUP($A$12,$B$3:$K$9,5,FALSE) &" "& VLOOKUP($A$12, $B$3:$K$9,4,FALSE),"")
    See attachment
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-19-2011
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: I want to copy information on a spreadsheet to another sheet by using ID numbers

    Thank you. Now, how do I get the drop down to understand that if i type an id in that space it will do the same thing. I have over 35,000 clients to search would be painful. I want to be able to type in the ID and it will do the same as you just showed? Thanks again! That was awesome!

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: I want to copy information on a spreadsheet to another sheet by using ID numbers

    You don't need the dropdown. As long as your formulas refer to your entire range, you can leave A12 as a normal cell and type into it at your leisure.
    The formula would be the same with a much bigger lookup range

    =IF($A$12,VLOOKUP($A$12,$B$3:$K$35000,5,FALSE) &" "& VLOOKUP($A$12, $B$3:$K$35000,4,FALSE),"")

+ 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. Open spreadsheet and copy certain information into another spreadsheet.
    By ConfusedaboutVBA in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2013, 10:43 PM
  2. [SOLVED] Macro Copy and Paste from one sheet to another sheet only where there is information
    By Elmarie_Potgieter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2013, 03:13 AM
  3. copy and retain information from a data entry sheet to trending sheet
    By thuddleston11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2012, 11:13 AM
  4. [SOLVED] Macro to copy row information from sheet to sheet won't work
    By beth.randall in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2012, 01:31 PM
  5. Replies: 1
    Last Post: 09-08-2012, 12:04 PM
  6. Replies: 1
    Last Post: 03-26-2012, 12:20 PM
  7. Copy table information into Summary Sheet and All Data Sheet
    By stage in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2011, 03:54 PM
  8. Replies: 0
    Last Post: 05-15-2006, 09:55 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