Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mseifert_99
 
Posts: n/a
Default Text to Number Value.


I have a spread sheet that has a several columns with a text Value of
"None", Slight/Moderate", "Severe". What I want to do is create a Macro
or something that if it sees say a Cell with "Severe" in it it will
change the Cell value to 0


--
mseifert_99
------------------------------------------------------------------------
mseifert_99's Profile: http://www.excelforum.com/member.php...o&userid=30573
View this thread: http://www.excelforum.com/showthread...hreadid=508331

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Text to Number Value.

You can do this with Find & Replace. Highlight the cells or columns
where you want to make this change, then click Edit | Replace (or just
do CTRL-H). In the panel that pops up you should enter "Severe"
(without the quotes) in the Find What box, enter 0 in the Replace With
box and then click Replace All.

Hope this helps.

Pete

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Text to Number Value.

Try this:

original lookup
code number code number
None 1 Slight/Moderate 2
Severe 0 None 1
Slight/Moderate 2 Severe 0

Your table of codes/numbers in A3:B5
The values you want to translate in e.g. D3:D5
In E3 enter:
=IF(ISNA(VLOOKUP(D3;$A$3:$B$5;2;FALSE));"???";VLOO KUP(D3;$A$3:$B$5;2;FALSE))
Copy down as required

That will translate any code that is in the table to the accorsing
number.

Hans

Sorry for the crap formatting above

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
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Excell-How to add the number of cells containing text? = a sum aruba64taw Excel Worksheet Functions 2 December 21st 05 09:51 AM
Change number in Text Box in Excel Jerry Dyben Excel Discussion (Misc queries) 2 September 23rd 05 02:40 AM
Format Number to Text Roni Excel Worksheet Functions 2 May 17th 05 03:17 PM
16 digit number wont keep alteration unless format cell to text Croc001 Excel Discussion (Misc queries) 3 March 30th 05 09:12 AM


All times are GMT +1. The time now is 05:23 AM.

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

About Us

"It's about Microsoft Excel"