sum from reference between dates on another sheet

IanWells

Board Regular
Joined
Apr 2, 2003
Messages
86
hi all

please help...

I need to sum values using a reference cell and between dates, here is hopefully the guide.

sheet 1 contains all data, column 'H' contains reference number, column 'AB' contain value, column 'M' contains dates.

sheet 2 for formula, in column 'A' will contain reference to coincide with(sheet 1 'H' col)
in column 'B' formula like the following

=sum 'sheet1!AB2:AB13638' if 'sheet2!H2:H13638' same as cell 'sheet1!A1' between 01/01/2010 to 01/08/2011 in 'sheet1!M2:M13638'

Many thanks for your time

Ian
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
try this arrayformula
Code:
=SUM(IF(Sheet1!$H$2:$H$10=Sheet2!A2,IF(Sheet1!$M$2:$M$10>="1/1/2010",IF(Sheet1!$M$2:$M$10<="1/8/2010",Sheet1!$AB$2:$AB$10))))

must entered with Ctrl+Shift+Enter
 
Upvote 0
WOW how long is that! well i must say after a little tweaking to suit ranges and using a cell reference for the date it is just what i need

Thank you very much.

Ian
 
Upvote 0
Here's an alternative:
=SUMPRODUCT(--(Sheet1!H2:H13638=Sheet2!$A$1),--(Sheet1!M2:M13638>=DATEVALUE("1/1/10")),--(Sheet1!M2:M13638<=DATEVALUE("1/8/11")),Sheet1!AB2:AB13638)
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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