+ Reply to Thread
Results 1 to 6 of 6

If a cell contains a word, enter another word in different cell

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    United States
    MS-Off Ver
    Excel for Mac 2011
    Posts
    7

    If a cell contains a word, enter another word in different cell

    Hello,

    I am learning a lot about excel as I try to make a budget worksheet. I have a column containing drop down list/validated list. These are my budget categories. What I am looking to do is have the most common transactions auto populate the categories. i.e. if the transaction contains the word "pizza" in column C then enter "Dining Out" in column F, which is the validate list column.

    From what I've seen I would have to make a formula containing all the most popular categories I want to include and put that in the cell where I want the results displayed. I can not put that formula in that column because I can only put whats in the validated list there and I also have read that IF commands can only be up to 7 IF's.

    Any insight would be great, Thanks!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If a cell contains a word, enter another word in different cell

    Hi walby & Welcome to the Forum,

    Take a look at creating a lookup list which would negate the 7 nested IF's, however, this only applies to 2003 and lower versions of Excel.

    http://www.contextures.com/xlFunctions02.html#Location
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    United States
    MS-Off Ver
    Excel for Mac 2011
    Posts
    7

    Re: If a cell contains a word, enter another word in different cell

    Thanks Jeff.

    It looks like what I'm looking for (I think) it may be a bit above my Excel skill set. You said its only for 2003 and older, is it worth trying to learn and apply this concept for Mac 2011?

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If a cell contains a word, enter another word in different cell

    The VLOOKUP will work on all Excel versions, what I was saying was about the nested IFs. Versions lower than 2007 can only handle the seven, but 2007+ does not have this limitation.

    Let me know of you make it and if you get stuck, paste the formula you are trying and what you have setup as your lookup table and we can get it worked out.

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    United States
    MS-Off Ver
    Excel for Mac 2011
    Posts
    7

    Re: If a cell contains a word, enter another word in different cell

    I think I may be off the mark on this vlookup. From what I see it only shows you data you already have in a sheet.

    "VLOOKUP searches a list for a value in left most column and returns corresponding value from adjacent columns."

    I am looking to auto populate a column based on information in another column. So when I import data in a .CSV it will automatically enter the corresponding data in a column in the same row.

    Again, thank you for your advice.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If a cell contains a word, enter another word in different cell

    That changes things. You did not mention a .CSV file at the beginning.

    If you spell out your details (in full) maybe we can put a macro together to automate this process.

    Make sure you give all the correct column references.

+ 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