#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default sumproduct text

Hello,

A1 A,B,X,C,X
A2 X,D,G,X
A3 F,G,K,L,X


I need to count how many X repeated at many cells using sumproduct function.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumproduct text

One way
In B1:
=SUMPRODUCT(--(LEN(A1:A3)-LEN(SUBSTITUTE(A1:A3,"X",""))))
Adapt the range to suit
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"A.Mourice" wrote:
A1 A,B,X,C,X
A2 X,D,G,X
A3 F,G,K,L,X


I need to count how many X repeated at many cells using sumproduct function.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default sumproduct text

To count the number of X's, use:

=LEN(A1&A2&A3)-LEN(SUBSTITUTE(A1&A2&A3,"X",""))

this will show 5 for your posted data.
--
Gary''s Student - gsnu200802


"A.Mourice" wrote:

Hello,

A1 A,B,X,C,X
A2 X,D,G,X
A3 F,G,K,L,X


I need to count how many X repeated at many cells using sumproduct function.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default sumproduct text

=SUMPRODUCT(LEN(A1:A3)-LEN(SUBSTITUTE(UPPER(A1:A3),"X","")))


"A.Mourice" wrote:

Hello,

A1 A,B,X,C,X
A2 X,D,G,X
A3 F,G,K,L,X


I need to count how many X repeated at many cells using sumproduct function.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default sumproduct text

I use the same equation at the following, but it didn't work

A1 1-, 2-, 3-,
A2 2-, 1-, 10-
A3 3-, 1-, 2-, 1-

I need to count how many 1- using sumproduct function

Thanks


"Gary''s Student" wrote:

To count the number of X's, use:

=LEN(A1&A2&A3)-LEN(SUBSTITUTE(A1&A2&A3,"X",""))

this will show 5 for your posted data.
--
Gary''s Student - gsnu200802


"A.Mourice" wrote:

Hello,

A1 A,B,X,C,X
A2 X,D,G,X
A3 F,G,K,L,X


I need to count how many X repeated at many cells using sumproduct function.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default sumproduct text

changing the formula:

=LEN(A1&A2&A3)-LEN(SUBSTITUTE(A1&A2&A3,"1-",""))

you should see 8
--
Gary''s Student - gsnu200802


"Gary''s Student" wrote:

To count the number of X's, use:

=LEN(A1&A2&A3)-LEN(SUBSTITUTE(A1&A2&A3,"X",""))

this will show 5 for your posted data.
--
Gary''s Student - gsnu200802


"A.Mourice" wrote:

Hello,

A1 A,B,X,C,X
A2 X,D,G,X
A3 F,G,K,L,X


I need to count how many X repeated at many cells using sumproduct function.

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
2 criteria lookup of text. Return text form column 3. SUMPRODUCT t zzxxcc Excel Worksheet Functions 2 August 26th 08 11:04 PM
Text in SUMPRODUCT J. Trucking Excel Worksheet Functions 5 March 12th 08 12:18 AM
sumproduct text if mass Excel Worksheet Functions 8 November 26th 07 03:44 PM
maybe by sumproduct or some other way with text. driller Excel Worksheet Functions 4 June 5th 07 08:54 AM
SUMPRODUCT vs Text??? Ken Excel Worksheet Functions 2 April 9th 05 07:21 PM


All times are GMT +1. The time now is 10:44 PM.

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"