+ Reply to Thread
Results 1 to 3 of 3

Copying data from one cell dependant on value in another

  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    28

    Copying data from one cell dependant on value in another

    Hi,

    I have a table that has various columns in and I want to be able to copy data in one column, depending on the value of another colum into the a different sheet. I have attached a sample spreadsheet of what I want to do.

    So for example in the table on the tab data, I want to be able to copy all of the codes in column H that that correspond to the code AUS in column G into another sheet called Code in cell B3, which I have named AUS.

    There are few countries that I need to do this for, so for anyhting in column G that is GRE, I want to copy the values in column H for all GRE to the code tab and cell D3 whcih I have named GRE.

    Any help would be much appreciated.

    Thanks,
    Dominic.
    Attached Files Attached Files
    Last edited by dgo; 06-21-2010 at 11:49 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying data from one cell dependant on value in another

    Add a helper column in Data sheet:

    So in J1, enter:

    Please Login or Register  to view this content.
    and copy down

    Then in B1 of Code sheet enter:

    Please Login or Register  to view this content.
    to count number of matches.

    Copy B1 and paste to D1, F1, H1

    It is assumed that the codes in column G can be derived from the left 3 characters of the countries in row 2 of the Code sheet

    Then in B3 enter:

    Please Login or Register  to view this content.
    and copy down as far as you wish.

    Copy this column of column of formulas to D3, F3, and H3.

    Note: It would be easier if you did not have blank columns between... then you would need to enter formula once and copy across the columns and down the rows.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-28-2006
    Posts
    28

    Re: Copying data from one cell dependant on value in another

    Perfect, thanks so much for your help.

+ 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