Excel - Count Queries

Folks,

As per attached , i would like to know if the days are 1 , i need to know how many T is present and how many H . In this table , i need to calculate how many technicians and helpers required in total . What formula can i use for this table.

Any advise / suggestions please

Regards,
SID
test.xlsx
infiniti7181Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this....

For counting Technicians
=SUMPRODUCT(--LEFT(F2:F23,IFERROR(SEARCH("t+",F2:F23)-1,SEARCH("t",F2:F23)-1)))

Open in new window


And for counting Helpers, try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.
=SUMPRODUCT(--(SUBSTITUTE(IFERROR(REPLACE(F2:F23,1,FIND("+",F2:F23),""),0),"H","")))

For details refer to the attached workbook.

*********************************************
Remember that an Array Formula is confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.  You will know the array is active when you see curly braces { } appear around your formula.  If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.  Press F2 on that cell and try again.
test.xlsx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.