Count how many times value appears in range

mdsurf

New Member
Joined
Aug 1, 2017
Messages
13
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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,791
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,147,818
Messages
5,743,382
Members
423,792
Latest member
travisds

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