LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default convert text to number in excel

Hi,

If you know you are only going to have one of these four single digit
letters in A1 all the formulas supplied will work. Note that if that is not
the case then none of these formulas may return the answer you want, whatever
that might be. For example,

=(A1="p")+(A1="m")*2+(A1="d")*3

returns 0 if A1 contains "Z" or "ma" for example.

And if you entered fpmd in cell B1 you could use the shortened version of a
previous suggestion:

=FIND(A1,B1)-1

--
Cheers,
Shane Devenshire


"The IC Teacher" wrote:

I have one of four chars displayed in any cell "f", "p", "m", "d", i wish to
convert "f" to 0 "p" to 1 "m" to 2 and "d" to 3 then compare to a second set
of cells.
The second set of cells value can also be "f", "p", "m", "d" which i need to
convert to the same set of numbers.
i will then use autoformat in a third cell to determine if the second set of
cells is higher in value than the first or lower in value


The Teacher

 
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
number convert to text in excel sugu Excel Discussion (Misc queries) 0 August 23rd 06 11:52 AM
can we convert number to text in excel as if 1= One Akhil Excel Discussion (Misc queries) 2 August 14th 06 06:24 PM
How do I convert a number in Excel to text? Hoff Excel Worksheet Functions 2 March 23rd 06 11:27 PM
In Excel, how do we convert text into number (value)? Hersh Levy Excel Worksheet Functions 1 July 29th 05 11:54 PM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM


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