Total of rows with a word in it

JoshuaMars

New Member
Joined
Jul 13, 2006
Messages
46
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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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
 
Upvote 0
onlyadrafter,

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.

Thanks in advance.

Joshua
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,213,535
Messages
6,114,194
Members
448,554
Latest member
Gleisner2

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