Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Is there formulas which set text to equal a number?

I am trying to create text and when selected from a drop down list a specific
$ amount is input in the adjacent cell dependent on which item was selected
from the drop down.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Is there formulas which set text to equal a number?

If there are only a "few" different items you can use something like this:

=IF(A1="apples",25,IF(A1="grapes",35,IF(A1="pears" ,28,"")))

If you have many different items then you should create a 2 column lookup
table like this:

...........D..........E
1...apples.......25
2...grapes......35
3...pears........28

Then the formula would be:

=VLOOKUP(A1,D1:E3,2,0)

--
Biff
Microsoft Excel MVP


"Barbara S" <Barbara wrote in message
...
I am trying to create text and when selected from a drop down list a
specific
$ amount is input in the adjacent cell dependent on which item was
selected
from the drop down.



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
How to make text in a cell equal a number Dantron Excel Discussion (Misc queries) 6 April 4th 23 10:09 AM
Formulas Equal? Richard Excel Discussion (Misc queries) 5 May 15th 07 08:36 PM
Formulas - SUMIF but with a text not number result? Lindy Excel Discussion (Misc queries) 1 March 30th 07 05:30 AM
Why do all my calculations/formulas equal zero? Andy Excel Discussion (Misc queries) 4 July 12th 06 11:27 AM
How do I get text to equal a number so I can sum a column? jimi Excel Discussion (Misc queries) 5 June 10th 06 01:43 AM


All times are GMT +1. The time now is 06:58 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"