![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Detroit
Posts: 31
|
Need some help trying to link columns together... Ex. If I put a certain number or word in column A, how can I make column B spit out something linke to it. Say if chicken=duck. How I can i type chicken in one column and make duck spit out in another... I have no idea how to do this... Any help is appreciated...
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
in B2, =IF(A2="chicken","duck,"")
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
Specific response: A1: "Chicken" B1: =IF(A1="Chicken","Duck","") How many test conditions are there? A forumla that references a lookup table would probably be your best bet in this case. Bye, Jay |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Location: Detroit
Posts: 31
|
Thanks!!!
How could i make a formula for a table??? And can I make the formula appear in any cell...Say if i was randomly inputting chicken in one cell could the adjacent cell = duck... or do i have to specify cell columns in my formula...? |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Location: Detroit
Posts: 31
|
Maybe I can clarify better, If I have ten items that correspond to ten different items, how can I type one in any column and get the correspoding output.
Ex... I have five items... tree = green car = blue house = red dog = black fish = orange How can I make it so when I type any of the five inputs in any column, I get the corresponding answer.. Can I do that...? SOrry if this sounds confusing.. I am new to the formulas... Thanks!!! |
|
|
|
|
|
#6 | |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Quote:
Column A tree car house dog fish Column B green blue red black orange In any cell other than A1:B5 try =vlookup(c1,A1:b5,2) Where C1 is the cell you type in dog etc. |
|
|
|
|
|
|
#7 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Quote:
Try this : it needs setting up just the once : select cell B1 insert (from the toolbar) names define where it's blinking, name it something short and appropriate, like UBQ1 or something in "refers to" type the following : =VLOOKUP(!A1,{"chicken","duck";"tree","green";"car","blue";"house","red";"dog","black";"fish","orange"},2,0) click on "add" click on "ok" to exit now, in any cell on any sheet, enter =UBQ1 next to your chicken/tree/car/house/dog entry and you'll get duck/green/blue/red/black returned Hopefully, also, some VBA expert will spot this post and offer an even easier way, without the need to double-enter...
__________________
:: Pharma Z - Family drugstore :: |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|