Sum of text in cell range

mdileep

New Member
Joined
Dec 8, 2019
Messages
37
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.
 

Some videos you may like

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

arthurbr

Well-known Member
Joined
Dec 8, 2006
Messages
2,168
Office Version
  1. 2010
Try
Excel Formula:
=SUMPRODUCT(--(LEN(A1:A5)))
 

mdileep

New Member
Joined
Dec 8, 2019
Messages
37
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile

ADVERTISEMENT

You're welcome
What about for following Sir,
Cell range
A1:A7,
Result in A8=Text TOTAL(P&PP),
Result in A9=Text Text TOTAL Off

P, OFF, P,PP,OFF,PP A8=6, A9=2

Thanks.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,028
Office Version
  1. 365
Platform
  1. Windows
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")
 

mdileep

New Member
Joined
Dec 8, 2019
Messages
37
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile

ADVERTISEMENT

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 !
 

mdileep

New Member
Joined
Dec 8, 2019
Messages
37
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile
Not sure what you mean by this.
I am near about reach to farmula for cell A9, but work on whole day am nor reach to farmula as u described in cell A8.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,028
Office Version
  1. 365
Platform
  1. Windows
I'm sorry but I have no idea what you mean.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,753
Messages
5,597,925
Members
414,191
Latest member
debbhatta

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
Top