Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like to format my spreadsheet so that when I enter a word in one cell
it automatically inputs a value in another cell. For example: (if cell A1="Blue Shirt" then cell B1=4.39, if cell A1="Red Shirt" then cell B1=5.19) ....and so on. This way Excel can automatically tally the cost of the item I'm putting in and give me that value in the adjasent cell. I've seen it done, I just can't remember how. Help! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You should set up a table, e.g. items in Y1:Y10 and corresponding costs in
Z1:Z10 then use this formula in B1 =VLOOKUP(A1,$Y$1:$Z$10,2,0) "Amey_zing1" wrote: I would like to format my spreadsheet so that when I enter a word in one cell it automatically inputs a value in another cell. For example: (if cell A1="Blue Shirt" then cell B1=4.39, if cell A1="Red Shirt" then cell B1=5.19) ...and so on. This way Excel can automatically tally the cost of the item I'm putting in and give me that value in the adjasent cell. I've seen it done, I just can't remember how. Help! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
That would work if I were searching for these values, right? But I'm creating
a list...a very LONG list...and I want to be able to shorten my work load by having excel automatically enter in a cost for each item as soon as I'm typed it in. e.g. I type "Blue Shirt" in cell A1 (and cell A1 has some nifty formula that recognizes the words "Blue Shirt") and Excel automatically puts in a value of $4.39 in cell B1. I've even seen Excel create a drag-down list in the cell that tells me what my options are (e.g. "Blue Shirt", "Red Shirt", "Green Shirt") based on the formula specs. That's kind of what I ment by "if" , "then". Does that expain it a little better? "daddylonglegs" wrote: You should set up a table, e.g. items in Y1:Y10 and corresponding costs in Z1:Z10 then use this formula in B1 =VLOOKUP(A1,$Y$1:$Z$10,2,0) "Amey_zing1" wrote: I would like to format my spreadsheet so that when I enter a word in one cell it automatically inputs a value in another cell. For example: (if cell A1="Blue Shirt" then cell B1=4.39, if cell A1="Red Shirt" then cell B1=5.19) ...and so on. This way Excel can automatically tally the cost of the item I'm putting in and give me that value in the adjasent cell. I've seen it done, I just can't remember how. Help! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=LOOKUP(A1,{"Blue Shirt","Red Shirt"},{4.39,5.19})
which can easily be extended by adding to the two arrays. -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Amey_zing1" wrote in message ... I would like to format my spreadsheet so that when I enter a word in one cell it automatically inputs a value in another cell. For example: (if cell A1="Blue Shirt" then cell B1=4.39, if cell A1="Red Shirt" then cell B1=5.19) ...and so on. This way Excel can automatically tally the cost of the item I'm putting in and give me that value in the adjasent cell. I've seen it done, I just can't remember how. Help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combine logical formulas "if", "and", "or" | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |