Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Orphan86
 
Posts: n/a
Default Assigning a number value to a letter?

I am trying to see how I can assign a number value (10) to a letter (X) that
is typed into a cell. Everytime I type (X) I want it to represent the number
(10) in any formulas that I want to use it in. So, if a type (X) in seven
cells it should add up to 70. Can I do this?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUM(IF(A2:A20="X",10))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Orphan86" wrote in message
...
I am trying to see how I can assign a number value (10) to a letter (X)

that
is typed into a cell. Everytime I type (X) I want it to represent the

number
(10) in any formulas that I want to use it in. So, if a type (X) in seven
cells it should add up to 70. Can I do this?



  #3   Report Post  
Jay
 
Posts: n/a
Default

I am trying to see how I can assign a number value (10) to a letter
(X) that is typed into a cell. Everytime I type (X) I want it to
represent the number (10) in any formulas that I want to use it in.
So, if a type (X) in seven cells it should add up to 70. ...


One way is illustrated by the example in the CSV file below.

---------- cut here ----------
X,G,"=10*COUNTIF(A1:B6,""X"")"
G,H,
H,X,
X,V,
V,X,
X,G,

  #4   Report Post  
Gary's Student
 
Posts: n/a
Default

Amother approach is to put 10 in a cell, say A1, then pulldown Insert Name

enter X and touch Add.

From that point on you can use X in place of 10 in formulae. For example
you can put =37*X in a cell to get 370.

In your case you can put =X in a column to get your sum.
--
Gary's Student


"Jay" wrote:

I am trying to see how I can assign a number value (10) to a letter
(X) that is typed into a cell. Everytime I type (X) I want it to
represent the number (10) in any formulas that I want to use it in.
So, if a type (X) in seven cells it should add up to 70. ...


One way is illustrated by the example in the CSV file below.

---------- cut here ----------
X,G,"=10*COUNTIF(A1:B6,""X"")"
G,H,
H,X,
X,V,
V,X,
X,G,


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
Convert Text (letter) To Number Excel reloadinternet Excel Worksheet Functions 2 August 22nd 05 03:49 PM
Get Column Letter from Column Number Gary Brown Excel Worksheet Functions 7 June 11th 05 02:08 AM
Need number of Saturdays and number of Sundays between 2 dates Class316 Excel Worksheet Functions 1 June 10th 05 02:47 AM
worksheet columns changed from letter to number, how change back Ron New Users to Excel 2 May 9th 05 08:35 PM
column header changed from letter to number, how return to letter Ron Excel Discussion (Misc queries) 2 May 9th 05 08:34 PM


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