Count Number of Times Value Appears in Same Cell

rob51852

Board Regular
Joined
Jun 27, 2016
Messages
191
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have a sheet where cell D5 is populated with a value each minute by an external source. Is there a formula that will return the word "low" if the value 32 appears three times in that cell?

Thanks
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I have a sheet where cell D5 is populated with a value each minute by an external source. Is there a formula that will return the word "low" if the value 32 appears three times in that cell?
Why don't you show us a few representative samples of the data that could be in a cell so we can get a better sense on how to help you. The things I am looking for is if there is a consistent delimiter separating the numbers you are searching for from the rest of the text and whether the number you are searching for (for example, 32) could appear embedded within other numbers (for example, 432).
 
Upvote 0
Agree with Rick that we need to see some representative samples, but probably something along the lines of

=IF((LEN(D5)-LEN(SUBSTITUTE(D5,32,"")))/2>=3,"Low","")
 
Upvote 0
IMO, the OP is talking about a counter -- that is, a VBA solution. Not clear if the "low" should be displayed after three consecutive of three cumulative appearances of 32 in D5.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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