Need Help: Count Formula

pochie2741

New Member
Joined
Dec 8, 2021
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
Hello,

May I request for your assistance on creating a count formula using the example below?

Multiple fruits per cell but should be counted all.

Apple/Orange/Grapes/Apple/AppleResults of Count
Mango/GrapesApple4
Orange/Orange/GrapesOrange3
Apple/Grapes/GrapesGrapes5
Mango1
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
interesting article here on how to do that - case sensitive & Non Case Sensitive

Book2
ABCDE
1Apple/Orange/Grapes/Apple/AppleResults of CountSolution
2Mango/GrapesApple44
3Orange/Orange/GrapesOrange33
4Apple/Grapes/GrapesGrapes55
5Mango11
Sheet1
Cell Formulas
RangeFormula
E2:E5E2=SUM((LEN($A$1:$A$4)-LEN(SUBSTITUTE($A$1:$A$4,C2,"")))/LEN(C2))
 
Upvote 0
interesting article here on how to do that - case sensitive & Non Case Sensitive

Book2
ABCDE
1Apple/Orange/Grapes/Apple/AppleResults of CountSolution
2Mango/GrapesApple44
3Orange/Orange/GrapesOrange33
4Apple/Grapes/GrapesGrapes55
5Mango11
Sheet1
Cell Formulas
RangeFormula
E2:E5E2=SUM((LEN($A$1:$A$4)-LEN(SUBSTITUTE($A$1:$A$4,C2,"")))/LEN(C2))
Many thanks!
 
Upvote 0
glad to have helped, hope that solved the problem
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,777
Members
449,187
Latest member
hermansoa

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