Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default "if" , "then" formulas

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default "if" , "then" formulas

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default "if" , "then" formulas

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default "if" , "then" formulas

=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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine logical formulas "if", "and", "or" pscu Excel Discussion (Misc queries) 5 November 2nd 06 07:43 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 09:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"