COUNT TWO OR MORE TEXT FROM RANGE WITH A SINGLE FORMULA

AFZAL SOHAIL

Board Regular
Joined
May 31, 2023
Messages
156
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
Hello respected Team,
I want to count two or more than two text from a range simultaneously a single formula against their column:-
As count total no. of P in the P col
Count of Total no. of H as H col
count of Total No. of A, L, S/l as thir col at the end as show in the data with single formula simultaneously:-
Thanks a lot at advance.
12345678910111213141516171819202122232425262728293031PHALs/l
PPPPPHPPPPPPHPLLPPPHPaaPPPHS/LS/LPP214222
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
For xl2021 how about
Fluff.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJ
112345678910111213141516171819202122232425262728293031PHALs/l
2PPPPPHPPPPPPHPLLPPPHPaaPPPHS/LS/LPP214222
Sheet5
Cell Formulas
RangeFormula
AF2:AJ2AF2=COUNTIFS(A2:AE2,$AF$1:$AJ$1)
Dynamic array formulas.
 
Upvote 0
Solution
thanks a lot Sir,
This formula working very well only the fist value i.e. col AF, when get more it is giving the error as :-
12345678910111213141516171819202122232425262728293031PHALs/l
PPPPPHPPPPPPHPLLPPPHPaaPPPHS/LS/LPP
#SPILL!​
21​
422
2​
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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