Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Convert a letter to a numeric value

If I have data in a column, in alpha form, is there any way to automatically
convert that data to numeric values in another column? For example, if cell
A1 contains B, A2 contains B, A3 contains A, A4 contains C, how can I get B1
to show 3, B2 to show 3, B3 to show 4, B4 to show 2, etc? (A should =4, B
should =3, C should=2).
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 638
Default Convert a letter to a numeric value

In B1, place something like this and paste down the column as needed.
=IF(A1="A",4,IF(A1="B",3,IF(A1="C",2,"Not A, B, or C")))

sherrye123 wrote:
If I have data in a column, in alpha form, is there any way to automatically
convert that data to numeric values in another column? For example, if cell
A1 contains B, A2 contains B, A3 contains A, A4 contains C, how can I get B1
to show 3, B2 to show 3, B3 to show 4, B4 to show 2, etc? (A should =4, B
should =3, C should=2).


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Convert a letter to a numeric value

Put this in B1

=69-CODE(A1)

copy down to B4


--


Regards,


Peo Sjoblom


"sherrye123" wrote in message
...
If I have data in a column, in alpha form, is there any way to
automatically
convert that data to numeric values in another column? For example, if
cell
A1 contains B, A2 contains B, A3 contains A, A4 contains C, how can I get
B1
to show 3, B2 to show 3, B3 to show 4, B4 to show 2, etc? (A should =4, B
should =3, C should=2).



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Convert a letter to a numeric value

Thank you - this worked perfectly!

"JW" wrote:

In B1, place something like this and paste down the column as needed.
=IF(A1="A",4,IF(A1="B",3,IF(A1="C",2,"Not A, B, or C")))

sherrye123 wrote:
If I have data in a column, in alpha form, is there any way to automatically
convert that data to numeric values in another column? For example, if cell
A1 contains B, A2 contains B, A3 contains A, A4 contains C, how can I get B1
to show 3, B2 to show 3, B3 to show 4, B4 to show 2, etc? (A should =4, B
should =3, C should=2).



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
Converting Letter to Numeric Value Larry Excel Worksheet Functions 4 July 20th 07 12:55 AM
Vlookup using letter and numeric codes LW_Greeney Excel Discussion (Misc queries) 2 May 23rd 06 05:24 PM
Numeric in Text to convert back to the form of Numeric for VLookup Purposes achilles Excel Discussion (Misc queries) 4 February 6th 06 07:05 AM
How do I assign a numeric value to a text letter Shaun Excel Discussion (Misc queries) 2 September 18th 05 12:24 AM
Converting Letter Grades to Numeric Angelo D Excel Worksheet Functions 6 April 25th 05 07:29 PM


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