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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to the board!

One option would be
Code:
=sumproduct(--(A1:A1000>D1),--(A1:A1000<D2),A1:A1000)
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,213,557
Messages
6,114,287
Members
448,562
Latest member
Flashbond

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