+ Reply to Thread
Results 1 to 7 of 7

How to use a different words to equal other words

  1. #1
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    How to use a different words to equal other words

    I have a cell A1 with the word APPLE
    Cell A2 has the word ORANGE
    Cell A3 has the word BANANA

    I want in column B a formula to look at the word in column A and put the proper name beside it from a range of words I've selected.

    From a formula in column B using "if", if it see's the word APPLE, then it should put RED DELICIOUS in column B1. If it sees the word ORANGE like in A2, then it would put the word LARGE ORGANIC. If it see's the word BANANA in column A, then it would use the word YELLOW FRUIT in column B.

    After the formula has been pasted in column B, then it would look like
    B1: RED DELICIOUS
    B2: LARGE ORGANIC
    B3: YELLOW FRUIT

    I was assuming a simple "IF" formula, but I'm not to sure how.

    Any advice would be appreciated.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: How to use a different words to equal other words

    hi there. put a table where fruits are in D1:D3 & the proper name in E1:E3.

    then use:
    =VLOOKUP(A1,$D$1:$E$3,2,0)

    this finds A1 inside D1:D3. the 2 refers to the 2nd column (which is column E in this case) is what you need once A1 is found in D1:D3. the 0 at the back is equivalent to typing FALSE. and that means it finds an exact match. so if A1 is "APPLES", it will fail

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: How to use a different words to equal other words

    What if I want to put the table for column D and E in a different worksheet...do I have to do something different?

  4. #4
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: How to use a different words to equal other words

    Ok. Think I figured it out the other worksheet...but I think there is something missing from your formula...

    =VLOOKUP(A1,$D$1:$E$3,2,0)
    for different worksheet...
    =VLOOKUP(A1,Worksheet!$D$1:$E$3,2,0) Is that all I have to do, where Worksheet is the name of the worksheet followed by !

    But if A1 looks inside D1:3...how does that work as I only see $D$1: and then to $E...so is it only looking in D1 then? Would I not need $D$1:$D$3 or something?

  5. #5
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: How to use a different words to equal other words

    I might as well shoot straight with this one...

    I put my values in B136:143 and their match in C136:143 in a sheet called "Configurator"

    Looking forward to your help :-)

  6. #6
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: How to use a different words to equal other words

    Nevermind. I got it!

    =VLOOKUP(A1,Configurator!$B$136:$C$143,2,0)

    Thanks! Solved!

  7. #7
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: How to use a different words to equal other words

    One more addition to the question.

    What if I put a table where fruits are in E1:E3 & the proper name in D1:D3 (backward of what was before)

    I tried changing the code to read $E$1$D3,2,0 but it always switches it back to D$1:$E$3

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] looking formula for Extract Specific WORDs in existing LONG Words
    By santosh226001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2013, 08:21 AM
  2. Words to Equal Number but Show Word
    By jdsimons2 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-11-2013, 01:28 AM
  3. Replies: 3
    Last Post: 11-28-2012, 04:00 AM
  4. Replies: 1
    Last Post: 04-04-2012, 07:15 PM
  5. Words Equal Numbers Question
    By Crew in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2005, 03:05 PM

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