Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jimi
 
Posts: n/a
Default How do I get text to equal a number so I can sum a column?

I am creating an Excel document where I place the letter X in a column and
want those X's to be added up and totaled at the bottom row. For example:
B2 - X
B3 - X
B4 - X
B5 - 3

As you can see, B5 has the result of 3 X's being input on B2:B4. So, how do
I get the letter X to be recognized as a numerical 1 to be added?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default How do I get text to equal a number so I can sum a column?

You can count the number of times a "thing" occurs in a column with COUNTIF():


=COUNTIF(B2:B4,"X") in cell B5
--
Gary's Student


"jimi" wrote:

I am creating an Excel document where I place the letter X in a column and
want those X's to be added up and totaled at the bottom row. For example:
B2 - X
B3 - X
B4 - X
B5 - 3

As you can see, B5 has the result of 3 X's being input on B2:B4. So, how do
I get the letter X to be recognized as a numerical 1 to be added?

  #3   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default How do I get text to equal a number so I can sum a column?

Try...

=COUNTIF(B2:B4,"X")

Hope this helps!

In article ,
jimi wrote:

I am creating an Excel document where I place the letter X in a column and
want those X's to be added up and totaled at the bottom row. For example:
B2 - X
B3 - X
B4 - X
B5 - 3

As you can see, B5 has the result of 3 X's being input on B2:B4. So, how do
I get the letter X to be recognized as a numerical 1 to be added?

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default How do I get text to equal a number so I can sum a column?

=COUNTA(B2:B4)

Vaya con Dios,
Chuck, CABGx3



"jimi" wrote:

I am creating an Excel document where I place the letter X in a column and
want those X's to be added up and totaled at the bottom row. For example:
B2 - X
B3 - X
B4 - X
B5 - 3

As you can see, B5 has the result of 3 X's being input on B2:B4. So, how do
I get the letter X to be recognized as a numerical 1 to be added?

  #5   Report Post  
Posted to microsoft.public.excel.misc
respinosa
 
Posts: n/a
Default How do I get text to equal a number so I can sum a column?


I have a similar problem.

Trying to get a word(s) in a column on Sheet2 to total in a cell on
Sheet1. So down Column C, how many times the word "Off" or "On"
appears to total on Sheet1 under their perspective rows of "Off" and
"On".


--
respinosa
------------------------------------------------------------------------
respinosa's Profile: http://www.excelforum.com/member.php...o&userid=35231
View this thread: http://www.excelforum.com/showthread...hreadid=549633



  #6   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default How do I get text to equal a number so I can sum a column?

=COUNTIF(Sheet2!C:C,"on")

=COUNTIF(Sheet2!C:C,"off")

="On = "&COUNTIF(Sheet2!C:C,"on")&CHAR(10)&"Off =
"&COUNTIF(Sheet2!C:C,"off") formatted for WrapText.


Vaya con Dios,
Chuck, CABGx3




"respinosa" wrote
in message ...

I have a similar problem.

Trying to get a word(s) in a column on Sheet2 to total in a cell on
Sheet1. So down Column C, how many times the word "Off" or "On"
appears to total on Sheet1 under their perspective rows of "Off" and
"On".


--
respinosa
------------------------------------------------------------------------
respinosa's Profile:

http://www.excelforum.com/member.php...o&userid=35231
View this thread: http://www.excelforum.com/showthread...hreadid=549633



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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Column picked randomly with probability relative to number of entr Neil Goldwasser Excel Worksheet Functions 4 May 30th 06 08:55 AM
Add total number of rows (text) in a column rostroncarlyle Excel Worksheet Functions 1 December 15th 05 06:25 AM
The last column in my word document contains both text and number Ishta Excel Worksheet Functions 2 December 12th 05 07:00 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM


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