Sum of text in cell range

mdileep

Board Regular
Joined
Dec 8, 2019
Messages
54
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile
Good evening friend, I am hoping one of you can help me.
Cell range
A1 A2,A3,A4,A5 Text TOTAL
P, P, P, P, P 5 but if
P, PP, P, PP, P 7
with counts or with a combination of function without any helper column
Thanks.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try
Excel Formula:
=SUMPRODUCT(--(LEN(A1:A5)))
 
Upvote 0
How about
+Fluff v2.xlsm
A
1P
2OFF
3P
4PP
5OFF
6PP
7
86
92
Helper
Cell Formulas
RangeFormula
A8A8=SUMPRODUCT((A1:A7="P")+(A1:A7="PP"),LEN(A1:A7))
A9A9=COUNTIF(A1:A7,"OFF")
 
Upvote 0
How about
+Fluff v2.xlsm
A
1P
2OFF
3P
4PP
5OFF
6PP
7
86
92
Helper
Cell Formulas
RangeFormula
A8A8=SUMPRODUCT((A1:A7="P")+(A1:A7="PP"),LEN(A1:A7))
A9A9=COUNTIF(A1:A7,"OFF")
Working fine Sir, am unable to wrote farmula for A8.
Thank You !
 
Upvote 0
I'm sorry but I have no idea what you mean.
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top