Sum Query

pookietherabbit

New Member
Joined
Oct 13, 2006
Messages
2
Sorry if this is an obvious question.

In column 'A' I have a list of some 1000+ values.

I would like to be able to add all of the cells in this column that are between certain values.

So if D1 was £1101 and D2 was £3400, how can I add all of the values in Column A together that are between these figures?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

hatman

Well-known Member
Joined
Apr 8, 2005
Messages
2,664
Welcome to the board!

One option would be
Code:
=sumproduct(--(A1:A1000>D1),--(A1:A1000<D2),A1:A1000)
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
49,424
Office Version
  1. 365
Platform
  1. Windows
pookietherabbit

Welcome to the Mr Excel board!

Try this if you want to include D1 & D2 values in the sum:
=SUMIF(A:A,">="&D1)-SUMIF(A:A,">"&D2)

Or this if you want to exclude D1 & D2 values from the sum:
=SUMIF(A:A,">"&D1)-SUMIF(A:A,">="&D2)
 

Forum statistics

Threads
1,136,370
Messages
5,675,367
Members
419,566
Latest member
moni2277

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