+ Reply to Thread
Results 1 to 5 of 5

Automatically populate worksheets if data in column 1 matches

  1. #1
    Registered User
    Join Date
    09-04-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    45

    Smile Automatically populate worksheets if data in column 1 matches

    Hi,
    Is there a way that I can automatically populate information in certain columns of worksheets 2, 3, 4, etc when the data entered into column A matches the data entered into column A on worksheet 1. I have attached a sheet showing the different headings on my worksheets (all in the same workbook) and an example of where the info might be duplicated. I have coloured the relevant columns in bright green.
    i.e. if I enter company3 onto the second worksheet in columnA I want the data in columns BCDEF copied from worksheet1 (where the column headings match).
    any help gratefully received.
    I am using excel 2003
    many thanks
    carrach
    Attached Files Attached Files
    Last edited by carrach; 07-15-2010 at 04:29 AM.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Automatically populate worksheets if data in column 1 matches

    I would recommend a pivot table but a formula might look like:

    =INDEX(new_clients!$A$4:$AE$9,MATCH($A3,new_clients!$A$4:$A$9,0),MATCH(B$2,new_clients!$A$4:$AE$4,0))
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Registered User
    Join Date
    09-04-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Automatically populate worksheets if data in column 1 matches

    many many many thanks.
    This is great and will save us hours of work once I have adjusted it to suit all of the sheets.
    I have spent months trying to sort this but not able to.
    regards
    Carrach

  4. #4
    Registered User
    Join Date
    07-20-2012
    Location
    Buffalo
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Automatically populate worksheets if data in column 1 matches

    BUMP

    Could you possibly explain this formula? I'm trying to populate entire rows of data based on a cell value in the row match a predetermined text value.

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Automatically populate worksheets if data in column 1 matches

    Index returns a value from an array based on coordinates, so if you have a table:
    | 1 | 2 |
    | 3 | 4 |
    the formula =index(<table>,2,1)
    will return 3 (i.e. row 2, column 1)

    In the index formula are two match formulae, each one uses the relevant identifiers to find the correct coordinates:
    if you have a list: {a,b,c,d,e,f}
    match(d,<list>) returns 4

    Hopefully you can see how these fit together.

    For future reference, there is an 'evaluate formula' tool in the Formulas section of the ribbon. It doesn't look all that special, but it's brilliant for getting to grips with this sort of thing.

    HTH

+ 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