Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default sumproduct text and numbers same column

Is it possible to use the sumproduct function in excel 2007, to count alpha
characters, and sum numbers in the same column. For example:

Column A

10
10
10
P
P
P

result would be a cell that gives 30
another cell that gives the result (P) 3

I currently am using the sumproduct function to do this in 2 different
columns, in exel 2003 version.
--
LJW
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default sumproduct text and numbers same column

If this is what you have in column A, you can use:
=sum(A:A)
to sum the numbers, as it will ignore non-numeric entries.

To count the "P"s, use:
=countif(A:A,"P")

Regards,
Fred.

"Babylynn" wrote in message
...
Is it possible to use the sumproduct function in excel 2007, to count
alpha
characters, and sum numbers in the same column. For example:

Column A

10
10
10
P
P
P

result would be a cell that gives 30
another cell that gives the result (P) 3

I currently am using the sumproduct function to do this in 2 different
columns, in exel 2003 version.
--
LJW


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default sumproduct text and numbers same column

Assuming the P's were a stand in for any non-number, I would think this
formula would handle the non-numbers...

=COUNTA(A:A)-COUNT(A:A)

--
Rick (MVP - Excel)


"Fred Smith" wrote in message
...
If this is what you have in column A, you can use:
=sum(A:A)
to sum the numbers, as it will ignore non-numeric entries.

To count the "P"s, use:
=countif(A:A,"P")

Regards,
Fred.

"Babylynn" wrote in message
...
Is it possible to use the sumproduct function in excel 2007, to count
alpha
characters, and sum numbers in the same column. For example:

Column A

10
10
10
P
P
P

result would be a cell that gives 30
another cell that gives the result (P) 3

I currently am using the sumproduct function to do this in 2 different
columns, in exel 2003 version.
--
LJW



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
Sumproduct a column where 2 adj text columns contain same value Struggling in Sheffield[_2_] New Users to Excel 5 March 5th 09 02:36 PM
Changing A Column Of Text numbers To True Numbers: How ? Robert11[_3_] New Users to Excel 2 March 4th 09 09:08 PM
2 criteria lookup of text. Return text form column 3. SUMPRODUCT t zzxxcc Excel Worksheet Functions 2 August 26th 08 11:04 PM
Sumproduct with text and numbers in cells Lee New Users to Excel 10 April 21st 08 04:18 PM
Sumproduct Numbers and Text? wx4usa New Users to Excel 4 February 24th 07 03:15 AM


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