+ Reply to Thread
Results 1 to 6 of 6

Linking data in columns

  1. #1
    Registered User
    Join Date
    07-08-2009
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    14

    Linking data in columns

    Hi,

    I have two columns of data. One column lists a toy item and the next column lists whether it was made in Canada or not with a Y or N.

    See below:

    Toy CDN
    plane N
    bear Y
    train Y
    plane N
    bear Y
    bear Y

    Is there a way that every time "bear" is entered, the CDN column automatically fills with "Y"?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Linking data in columns

    How many different toys do you have? If it's just a few, you could use a function to do this, e.g.

    =IF(OR(A1="Bear",A1="Train"),"Y","N")

    This says that if A1 is Bear or Train, put Y in the current cell, otherwise put N for all other entries. If that's not the logic you need, or you have multiple toys possible, then a quick macro might be better.

  3. #3
    Registered User
    Join Date
    08-15-2008
    Location
    denver
    Posts
    68

    Re: Linking data in columns

    a lookup table would also work. Say you have 20 toys, list those in column E, row 1 through row 20. In column F, list the appropriate Y or N.

    In column B, row 2, put the formula:

    =vlookup(B1,$E$1:$F$20,2,FALSE)

    then copy that down column B

  4. #4
    Registered User
    Join Date
    07-08-2009
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Linking data in columns

    Thanks for the tips. I have lots of different toys and keep on adding new ones all the time. I think I will have to create a new sheet in the workbook and create the table with CDN indicators and use the vlookup function.

    One more question though, say I were to implement that. Iin the main sheet, where I enter the toys, is there a way that ensure that the title entered matches my separate titles sheet?

    Thanks in advance.

  5. #5
    Registered User
    Join Date
    08-15-2008
    Location
    denver
    Posts
    68

    Re: Linking data in columns

    If it doesn't match, you'll get an "#N/A" where the lookup formula is. If you are doing data entry into that column A, your entry should self-complete after the first few characters are typed, if you have already entered that toy at least once in that column.

  6. #6
    Registered User
    Join Date
    07-08-2009
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Linking data in columns

    Thanks, that answered my questions!

+ 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