+ Reply to Thread
Results 1 to 5 of 5

automatic information fill

Hybrid View

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    Druskininkai, Lithunia
    MS-Off Ver
    Excel 2003
    Posts
    5

    automatic information fill

    so i have a table http://yfrog.com/1614329992p
    it is possible to type the 4-digit code in the yellow cell and the info of green cells fill automati
    Attached Files Attached Files
    Last edited by mazviux; 07-13-2010 at 04:00 AM.

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

    Re: automatic information fill

    Yes, with a table of all your info with your 4 digit code in the first column, use VLOOKUP to pull the rest of the information.
    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
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: automatic information fill

    mazviux,

    welcome to the forum. If you want to illustrate your issue with a file, please upload it with the forum tools. Do not use links to external, untrusted sites.

    For one, we have no way of knowing how big your file is, before we can decide to download it.
    Secondly, many file sharing sites are blocked by company firewalls, reducing the number of people who can help you.

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

    Re: automatic information fill

    Step 1. Create a table with all your information. Let's say this is on Sheet 2. Column A would be your 4 digit code, then other columns with for each of your green rows (I'm not even going to try translating ).

    Step 2. on your first sheet in B2
    =IF(ISNUMBER(E2),VLOOKUP(E2,'Sheet 2'!$A$2:$E$150,2,FALSE),"")

    where
    ISNUMBER(E2) checks to see if there's a number in E2 before doing the VLOOKUP
    'Sheet 2'!$A$2:$E$150 is where your data is on sheet 2. Adjust this to fit your actual data. The $ signs keep the range from moving when you copy and paste or drag your formula.
    2 is what column (on Sheet 2) the particular data you are looking for is in.
    FALSE means return only exact matches.

    Hope that helped. As Teylyn stated, it's easier if you can upload an example spreadsheet to this forum (Go Advanced > Manage attachments).

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

    Re: automatic information fill

    Okay, in order to use the VLOOKUP, you need to have your 4 digit code be the first column in your table (I moved it in my example).

    I used defined name to name your table "Table" just to make things easier.

    An explaination of defined names:
    http://www.contextures.com/xlNames01.html

    I also put numbers at the bottom of your table so it would be easy to see what column you want to lookup. Normally, the first column of data is 1, next set 2, and so on but because you merged cells, it's necessary to actually count the columns. So the 3rd set of data would be column 5.

    I filled in the VLOOKUPS for your first two columns of data. ie. in C9

    =VLOOKUP(E9,Table,2,FALSE)

    I didn't fill in the last few columns because the values you currently have in there for 1106 don't match any of the values in your table for 1106 and I wasn't sure what column you wanted to pull. You should be able to figure it out from here though.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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