Combining Lookup and SUM

geoffbird

New Member
Joined
Sep 25, 2013
Messages
11
I am having trouble trying to workout how to do the below.


[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]W/E[/TD]
[TD]12/04/2014[/TD]
[TD]19/04/2014[/TD]
[TD]26/04/2014[/TD]
[TD]03/05/2014[/TD]
[TD]10/05/2014[/TD]
[TD]17/05/2014[/TD]
[TD]24/05/2014[/TD]
[/TR]
[TR]
[TD]Rev.[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Cost.[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]

I would like to combine a LOOKUP and SUM to say the following
Lookup a date in cell A1 within this table and sum Rev. from that date to column at end of the spreadsheet,


Hope this makes sense, Any help would be very much appreciated!!!!
 
Perhaps (untested)

=SUMPRODUCT((Sheet1!A1<=Sheet2!B1:Sheet2!H1)*(Sheet2!B2:H2))

UPDATE: This seems to work.
 
Upvote 0

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