Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ben Z.
 
Posts: n/a
Default How do I make a letter represent a number?

I am trying to use letters to represnt obtaining an item. What I would like
to do is have X=1, and use the 1 in a calculation; ie. 7 X's = 7. The only
formulas I can find make numbers represent letters, so I figure I have to
make my own, but I don't know how.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
L. Howard Kittle
 
Posts: n/a
Default How do I make a letter represent a number?

Hi Ben,

Perhaps COUNTIF. Will return the number X's in range F1:F14

=COUNTIF(F1:F14,"X")

HTH
Regards,
Howard

"Ben Z." <Ben wrote in message
...
I am trying to use letters to represnt obtaining an item. What I would like
to do is have X=1, and use the 1 in a calculation; ie. 7 X's = 7. The only
formulas I can find make numbers represent letters, so I figure I have to
make my own, but I don't know how.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default How do I make a letter represent a number?

Do you mean that if a cells hold X like in

A
B
X
X
B
C
X

then you want to be able to sum that up as 3?

=COUNTIF(A1:A7,"X")*1

if not post back


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com






"Ben Z." <Ben wrote in message
...
I am trying to use letters to represnt obtaining an item. What I would like
to do is have X=1, and use the 1 in a calculation; ie. 7 X's = 7. The only
formulas I can find make numbers represent letters, so I figure I have to
make my own, but I don't know how.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
 
Posts: n/a
Default How do I make a letter represent a number?

if you just want to count the number of characters in a cell
=len(a1)

--
Don Guillett
SalesAid Software

"Ben Z." <Ben wrote in message
...
I am trying to use letters to represnt obtaining an item. What I would like
to do is have X=1, and use the 1 in a calculation; ie. 7 X's = 7. The only
formulas I can find make numbers represent letters, so I figure I have to
make my own, but I don't know how.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
broro183
 
Posts: n/a
Default How do I make a letter represent a number?


Hi Ben,

I suspect that the "countif" answers already given will have given you
a way to solve your problem but...
Another option (which will be helpful if you have more letters to match
with a number than just x=1) involves the use of a lookup table eg,

1) Create a new worksheet & call it Lookup Table.
2) Put the alphabet in column A, one letter per cell ie cell A1=a,
A2=b,...,A26=z.
3) Put the number you want to match with each letter in column B eg
cell A24=x & B24 will =1.
4) Adapt this formula to be used on your working sheet:
"=VLOOKUP(A1,'Lookup Table'!$A$1:$B$26,2,FALSE)"
where the cell A1 contains the letter that you want to represent a
number.

hth
Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=531653

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
Staff rota, how can I make a letter represent a shift? Mike Ellis Excel Discussion (Misc queries) 3 December 27th 05 04:45 PM
how can I make a form number change everytime the form is opened babydumplingspita Excel Worksheet Functions 1 October 10th 05 07:58 PM
Convert Text (letter) To Number Excel reloadinternet Excel Worksheet Functions 2 August 22nd 05 03:49 PM
how to add a letter in front of each number in a cell nmodafferi Excel Discussion (Misc queries) 15 June 16th 05 08:58 PM
How do I get a letter to represent a number for scheduling? Henry Elliott Excel Worksheet Functions 1 January 5th 05 07:23 PM


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