Formula help please

foxystoat

New Member
Joined
Aug 17, 2010
Messages
4
Hi there guys, using Excel 2010 here....

http://s130.photobucket.com/albums/p275/foxystoat/?action=view&current=Excel.jpg

If I had varying amounts of data (see picture in above link - tried to paste image direct to this page but website wouldn't let me) and wanted to put in sub totals of each group of data (as per the red boxes), what way can I best do this? Obviously, I can't copy the formula and paste all the way down my very lengthy spreadsheet.

Any quick fixes to sort this out?

Cheers
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
There will be a better way soon, but for now. Start in Cell A2

Column A : Insert your figures complete with gaps
Column B : =IF(A2>0,1,0)
Column C : =IF(B2=1,A2+C1,0)
Column D : =IF(A2="",C1,"")

Hide Columns B & C and copy formulae down.
 
Upvote 0
assuming: your data is in column C as shown by gap, place this formula in column D adjacent to first data (C10=1.93) in D10 place this formula:

=IF(C10=0,SUM($C9:C$10),0)-IF(C10=0,SUM($D9:D$10),0)

Format 0's to show as blank and copy down.
 
Upvote 0
Roj47, I'm not quite sure how that formula calculates it all, but it sure works, and will save me a lot of time going forwards!

Many thanks, that is truly brilliant :biggrin:
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,551
Members
452,927
Latest member
rows and columns

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