Dynamic SUMIF?

Mark McInerney

Active Member
Joined
Apr 4, 2012
Messages
259
Office Version
  1. 365
Platform
  1. Windows
Hi Folks,

Is it possible to do a sumif on a dynamic range of data?

e.g. there are sales items in A1:A100, and sales values in the adjoining column B1:B100.

In D1:D10 I want to be able to insert any sales items in these 10 cells, and have a formula that calculates the sales for those 10 sale items in cell D11 - is this possible?

Thanks for taking the time to review - appreciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I support using proper data sets. Your proposal does not fit that ideal.
See the educator, Mike "Boomerang" Girvin video E-DAB 02
Also, that entire Play list.
 
Upvote 0
I would use =SUM(SUMIF(A1:A100,D1:D10,B1:B100)). Make Sure you use Ctrl + Shift + Enter To Finish The Formula
 
Upvote 0
Another option
Excel Formula:
=SUM(FILTER(B1:B100,ISNUMBER(MATCH(A1:A100,D1:D10,0)),0))
 
Upvote 0
Hi All,

As usual - this forum is such a great community of people supporting people - Thank you all for taking the time to review my query.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,039
Latest member
Mbone Mathonsi

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