find a word in sentences then use it's number

pmncivil

New Member
Joined
Oct 4, 2014
Messages
24
hi i need to identify a word like car in a bunch of sentences in a column then sum their numbers into a cell.
i explain it more:
...a sentence which contain car ........2
...........book..........4
..................car...............32
.............car12

<tbody>
</tbody>
i need to sum those numbers which contain car in their sentences.
like:
sum of cars = 2+32+12
books = 4 + ......
i can use this formula now : e1=is car
sumif(a:a,e1,b:b) but i dont know how to identify car in a sentence then sum of those numbers in new cell. i mean just sum those cells which contain car in their sentence.
i dont know how to explain it better. did u got it or i should have explain it more?
the key word is car or something else in a sentence and i need it's number.
by the way i'm new in excel and i don't know anything about programming.
so plz say in details if there is any solution.
thank u
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
The * is a wildcard character it indicates that there can be any text before and any text after because it was used before and after E1

Sheet1

ABCDE
1car to michel 5 14car
2chair 1
3car for sara 6
4book5
5car in hospital 2
6mom's car 1

<colgroup></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
D1=SUMIF(A:A,"*"&E1&"*",B:B)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >>

Thank u for explaining.
Can u tell what does the & do in this formula after the *
 
Upvote 0
The * is a wildcard character it indicates that there can be any text before and any text after because it was used before and after E1

Sheet1

ABCDE
1car to michel 5 14car
2chair 1
3car for sara 6
4book5
5car in hospital 2
6mom's car 1

<colgroup></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
D1=SUMIF(A:A,"*"&E1&"*",B:B)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >>
And can u tell me how can I learn all of those wildcard characters and excel functions?
Is there any learning source for that (of course I need free resources)
 
Upvote 0
The Excel help file, but there are 2 wildcard characters * which can mean 0 or more characters or ? which means a single character.

So *able would match able, table, constable, detestable, but ?able would only match table from those choices because it's the only 1 that has 1 single character before able.


Can u tell what does the & do in this formula after the *

The & is the concatenation operator so it make it like this, so if CAR was in E1
"*"&E1&"*" would evaluate as *CAR*
 
Upvote 0
Wow that was really good answer sir.
But i didnt understand excel help it was too simple and there arent complete enough for most of my problems.
There are many things in it but I just need programming simbols and funtions.
I would be glad if someone send me another help resource link.

And by the way my problem is solved. Thank u scott and the others who helped.
 
Upvote 0

Forum statistics

Threads
1,215,506
Messages
6,125,193
Members
449,213
Latest member
Kirbito

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