Count how many times value appears in range

mdsurf

New Member
Joined
Aug 1, 2017
Messages
11
Hi! trying to count how many times a value appears in a range, but I'm stuck because I can't figure out how to count it if it repeats in a cell.

Example: How do I calculate how many times the word apple appears below:

Location5/1/20205/2/20205/3/2020
1appleapple, orangesapple, apple
2bananapeach, appleorange

The answer should be 5 but I can't figure it out, thank you in advance for the help!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
63,645
Office Version
  1. 365
Platform
  1. Windows
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
+Fluff 1.xlsm
EFGH
13Location05/01/202005/02/202005/03/2020
141appleapple, orangesapple, apple
152bananapineapples, appleorange
16
17apple5
Main
Cell Formulas
RangeFormula
F17F17=SUMPRODUCT((LEN(" "&F14:H15&",")-LEN(SUBSTITUTE(" "&F14:H15&","," "&E17&",","")))/(LEN(E17)+2))+0
 

Forum statistics

Threads
1,143,677
Messages
5,720,257
Members
422,273
Latest member
linds75

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