Display Number of times string from a column is present in a cell

iip

New Member
Joined
Oct 21, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Lets say I have excel as below
1666357560557.png


How we can display how many words from column A (complete list ) are present each row of column c

So it should display on
Row 2 = 4
Row 3 = 3
Row 4 = 3

Also then can we show it by comparing case also
Row 2 = 4
Row 3 = 3
Row 4 = 2

Above problem is extended from Look up string in a list
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Which version of Excel are you actually using? It cannot be every version that ever existed.
 
Upvote 0
In that case please update your profile to show that.

How about
Excel Formula:
=LET(a,TRIM(TEXTSPLIT(C2,",")),COUNT(MATCH(a,$A$2:$A$7,0)))
 
Upvote 0
In that case please update your profile to show that.

How about
Excel Formula:
=LET(a,TRIM(TEXTSPLIT(C2,",")),COUNT(MATCH(a,$A$2:$A$7,0)))

I tried about formula but answers are not as expected shown

1666364479203.png
 

Attachments

  • 1666364303486.png
    1666364303486.png
    19.4 KB · Views: 1
Upvote 0
That's because you have moved what was in col C to col E & not changed the formula to suit.
 
Upvote 0
That's because you have moved what was in col C to col E & not changed the formula to suit.
Thanks a lot Fluff for responding. Actually I put the formula first and then put the 2 additional columns what i need to see. I corrected it but still same issue. I used the concept used in the topic Look up string in a list which helped me to find true/false but i am looking for counts as shown below.

1666368229497.png
 
Upvote 0
In that case can you please post some data rather than an image, as it works for me
Fluff.xlsm
ABC
1
2Cherry4Cherry,pineapple, Strawberry, fig
3pineapple3Cherry, apple, Strawberry, fig
4Strawberry1Fig
5Guava
6Fig
7Melon
Main
Cell Formulas
RangeFormula
B2:B4B2=LET(a,TRIM(TEXTSPLIT(C2,",")),COUNT(MATCH(a,$A$2:$A$7,0)))
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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