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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

Is this working as expected?

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

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
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
 

JoshuaMars

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

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
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)
 

Forum statistics

Threads
1,141,931
Messages
5,709,403
Members
421,635
Latest member
mehdi hannechi

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
Top