Subtotaling group with formula

pattersong

New Member
Joined
Jul 5, 2005
Messages
44
Hi all,
I've been struggling with this excel problem for most of the day and I'm hope someone on this forum will quickly resolve the issue. My OS is Windows 7 and I am using MS Office 2007. I tried to upload the worksheet, but I can't download the add-in due to my office security.
I have 3 columns (no headings at the moment, just working with the data). Column A consist of a,a,a,b,b,d,c,c,c. Column B consists of 5,5,5,2,1,5,2,2,1,2. Column D has the formula =IF(A2=A1,SUMIF(A:A,A2,B:B),"?"). It work pretty well, but the second row has a value of 15 (which is correct using the formula), but I want it to be blank until the next change in column A.
Thanks, in advance, for your helpful consideration. -- pattersong.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try:

=IF(A1=A2,"",SUMIF($A$1:$A$10,A1,$B$1:$B$10))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,452
Messages
6,124,914
Members
449,195
Latest member
Stevenciu

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