sumif help needed

Bob_ipc

Board Regular
Joined
Oct 18, 2017
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hello all, got a major brain fart situation. I am doing some work to an existing spreadsheet and there is a formula =SUMIF(C5:C938,B940,J5:J938). I need to be able to use a filter but I cannot figure it out using offset, please help

Thank you.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi,

Below should work:


Book1
AB
1NameA
2Name 1140
3Name 2135
4Name 1188
5Name 4138
6Name 1120
7Name 6150
8Name 7104
9Name 1109
10Name 9134
11Name 10132
12Name 1146
13Name 12120
14Name 13132
15Name 1140
16
17
18
19Name 1843
Sheet5
Cell Formulas
RangeFormula
B19{=SUM(IF($A$2:$A$15=A19,SUBTOTAL(109,OFFSET(B2,ROW(B2:B15)-2,))))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Another Non-Array option:

=SUMPRODUCT(--($A$2:$A$15=A19),SUBTOTAL(109,OFFSET(B2,ROW(B2:B15)-2,)))
 
Upvote 0
Hello and thank you for your reply, I am still not getting the result I'm looking for, I used =SUM(IF($C$5:$C$938=B940,SUBTOTAL(109,OFFSET(J5,ROW(J5:J938)-2,)))) I did not filter anything and the sum it came up with was 581 when the total is actually 1933. Same results when using =SUMPRODUCT(--($C$5:$C$938=B940),SUBTOTAL(109,OFFSET(J5,ROW(J5:J938)-2,))). I should mention that c5:c938 is using words as references not numbers.

Thanks
 
Upvote 0
Hi Try this

=SUMPRODUCT(--($C$5:$C$938=B940),SUBTOTAL(109,OFFSET(J5,ROW($J$5:$J$938)-ROW($J$5),)))

if this does not work, can you share some of the dummy data, will take a look at that.
 
Upvote 0
HEY!!! that works great!! thank you! now I only need to enter it in about 100 times haha, turns out it does not carry over or down very well when B column needs to stay constant and array columns change. Thanks again!
 
Upvote 0
Glad could help!

Instead of B90 use $B90 and it should make it usable across.
 
Upvote 0
BUDDY!!!! you just saved me so much time!! Thanks!!!!
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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