# Total of rows with a word in it

#### JoshuaMars

##### New Member
Hi there Excel masters,

Im sure this would be pretty easy for most of you, but for an novice user like myself, I cant get my head around it.

Is there a way of adding cells up a column only on rows that have a certin word in the row.

In the worksheet called 2006
A1 = January B1 = 5
A2 = February B2 = 5
A3 = Total B3 = 10
A4 = March B4 = 5
A5 = April B5 = 5
A6 = Total B6 = 10
etc
etc
etc

In worksheet called Grand Total
I would like to have B12 = the total sums of all rows in the 2006 sheet that have the word total in them.

Im sure there is sum way to do this.

Joshua

### Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hello,

Is this working as expected?

=SUMIF(A1:A14,"=*Total*",B1:B14)

Try:

Code:
``=SUMIF('2006'!A1:A100,"*" & A12 & "*",'2006'!B1:B100)``

Where A12 holds the string you want to search for eg "Total" (it isn't case sensitive). Adjust ranges to suit.

Best regards

Richard

As I said previous Im still only a newbie at excel, but im trying to learn.

Let em see if I have this formula correct.

=SUMIF(A1:A14,"=*Total*",B1:B14)

this basicly means do a sum over everything in column B but only of the rows that have te word Total in it.

correct. If not, that is what Im trying to do.

Joshua

Hello,

Correct, but the formula is currently only working in rows 1-14, you will need to change the cell refs as required. If you want the whole column use

=SUMIF(A:A,"=*Total*",B:B)

Works Perfect.

thanks again heaps

Replies
4
Views
615
Replies
1
Views
264
Replies
21
Views
868
Replies
7
Views
382
Replies
0
Views
150

1,219,798
Messages
6,150,318
Members
450,951
Latest member
kh198

### 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.

### Which adblocker are you using?

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

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