Determine the number of search results upon using different sets of separators

Iemand

New Member
Joined
Jun 23, 2017
Messages
4
Dear,

I would like some help on the formulation of a formula in Excel in order to compare the total number of search results upon using different sets of separator characters.

As I have multiple columns with content, as in the example below, I thought it would be possible to Count the search results in some way and do this for each column separately ( I would actually prefer to treat each column separately).
Column A
1 L-516-S-221-S-223
2 H-140.STR3
3 ST0 XP 23-9

Preferably, I would like to use a varying a set of separator characters in order to determine the impact on the number of search results based on this set of separator characters. Logically, with an increasing number of separators more results will be returned (depending on separators included in the cell values of course).

The set of characters that I would like to experiment with is: “-_ .,;: “

Hopefully this makes sense and someone is able to help me out.

Kind regards,
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Re: Determine the number of search results upon using different sets of separators (Excel) - Please help:)

what if you had this

2 H-140.STR3-fred;sid tom . harry.A99

note there is a blank either side of the dot between tom and harry


 
Upvote 0
Re: Determine the number of search results upon using different sets of separators (Excel) - Please help:)

what if you had this

2 H-140.STR3-fred;sid tom . harry.A99

note there is a blank either side of the dot between tom and harry




If all of this would be in one cell it should also return '.' as a single result since I included the 'space' in the list of separators mentioned in my original message.

Looking forward to your answer to my question.

Thanks.
 
Upvote 0
Re: Determine the number of search results upon using different sets of separators (Excel) - Please help:)

-. ,_:;123456
1 L-516-S-221-S-22360200001 L-51
2 H-140.STR322200002 H-14
3 ST0 XP 23-920400003 ST0
bob.fred-sid tom harry2230000bob.fr
bob,sid_harry0002200bob,si
bob:sid:harry;sue;pat0000031bob:si
columns B to H calculate the sector count for each type of separator
is this what you want

<colgroup><col><col span="14"></colgroup><tbody>
</tbody>
 
Upvote 0
Re: Determine the number of search results upon using different sets of separators (Excel) - Please help:)

-.,_:;123456
1 L-516-S-221-S-22360200001L-51
2 H-140.STR322200002H-14
3 ST0 XP 23-920400003ST0
bob.fred-sid tom harry2230000bob.fr
bob,sid_harry0002200bob,si
bob:sid:harry;sue;pat0000031bob:si
columns B to H calculate the sector count for each type of separator
is this what you want

<tbody>
</tbody>


Dear,

This is exactly what I am looking for. The number of strings returned when using a certain separator. I can simply add the ones in order to calculate the total of strings for a certain set of separators. What is the Excel code that I need to put in the cel? Thank you
 
Upvote 0
Re: Determine the number of search results upon using different sets of separators (Excel) - Please help:)

Would you have time to share the Excel code?
Thanks
 
Upvote 0
Re: Determine the number of search results upon using different sets of separators (Excel) - Please help:)

you are using countif on the range of individual characters

generic code =countif(B2:T2,a2)+1

so if a2 = "," you count all the commas in the range B2:T2 and add 1 to the total
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,865
Members
449,052
Latest member
Fuddy_Duddy

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