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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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 use it's number in new cell.
by the way i'm new in excel and i don't know anything about programming.
so plz say in detail if there is any solution.
thank u
If I understand what you are attempting to do, then I think this formula should work for you...

=SUMIF(A:A,E1,B:B)

Note that I used whole column references because that is what you showed in your fomula, however, using a smalle defined range for each would be more efficient.
 
Upvote 0
i dont have any programming addones in excel so if i should use it plz send my a free link to downl.ad it
 
Upvote 0
thank u sir it was my first formula which doesn't identify:: if there is car in a sentence or not
for example i have these sentences a column:

car to michel = 5
chair = 1
car for sara = 6
book=5
car in hospital = 2
mom's car = 1

here the car is the key word
i need excel to identify there is car in some sentences then sum their numbers: 5+6+2+1
sum of car = 5+6+2+1
 
Upvote 0
I think you need:

=SUMIF(A:A,"*"&E1&"*",B:B)
 
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

<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:133px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >car to michel </td><td style="text-align:right; ">5</td><td > </td><td style="text-align:right; ">14</td><td >car</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >chair </td><td style="text-align:right; ">1</td><td > </td><td > </td><td > </td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >car for sara </td><td style="text-align:right; ">6</td><td > </td><td > </td><td > </td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >book</td><td style="text-align:right; ">5</td><td > </td><td > </td><td > </td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >car in hospital </td><td style="text-align:right; ">2</td><td > </td><td > </td><td > </td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >mom's car </td><td style="text-align:right; ">1</td><td > </td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >D1</td><td >=SUMIF(A:A,"*"&E1&"*",B:B)</td></tr></table></td></tr></table> <br /><br /><span style="font-family:Arial; font-size:9pt; font-weight:bold;background-color:#ffffff; color:#000000; ">Excel tables to the web >> </span>
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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