Sumproduct indirect array?

Lidget

New Member
Joined
Apr 14, 2021
Messages
13
Office Version
  1. 2013
Platform
  1. Windows
Hi,
I made a formula to sum values in different columns on each row, based on number of days past today which is stored in c:4:c9 and the following works:
=SUM(INDIRECT(ADDRESS(ROW(C4:C9),C4:C9+MATCH(TODAY(),2:2,0),4)))

I now want to duplicate this to sum all the values in this array multiplied by a value in e:4:e9 but

=SUMPRODUCT(INDIRECT(ADDRESS(ROW(C4:C9),C4:C9+MATCH(TODAY(),2:2,0),4))E4:E9)
Is coming out zero no matter what the values in the target cells.

Any advice greatly appreciated
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Sadly not, it's on work laptop and their internet blocks pretty much anything going in or out
 
Upvote 0
In that case can you just copy/paste some sample data.
 
Upvote 0

In that case can you just copy/paste some sample data.
Knocked this up on my mobile so will see how it pastes in...
16/6/202215/6/202214/6/202213/6/202212/6/202210/6/2022
tasksdays to do itminutes per thing
thing 13121
thing 2462
thing 3583
thing 45201
thing 51302
thing 6223
 
Upvote 0


Knocked this up on my mobile so will see how it pastes in...
16/6/202215/6/202214/6/202213/6/202212/6/202210/6/2022
tasksdays to do itminutes per thing
thing 13121
thing 2462
thing 3583
thing 45201
thing 51302
thing 6223
Didn't go in great, tasks are B and dates are 2 for reference.
The sum formula added up all the numbers but sumproduct gives zero when multiplying but minutes array
 
Upvote 0
Thanks for that I can now see what your formula is doing, unfortunately I cannot see anyway to change it so that it multiplies the values by the time.
Hopefully somebody else will step in.
 
Upvote 0
Change of plan, is this what you want
Fluff.xlsm
ABCDEFGHIJKL
1
216/06/202215/06/202214/06/202213/06/202212/06/202210/06/2022
3tasksdays to do itminutes per thing
4thing 13121134
5thing 2462
6thing 3583
7thing 45201
8thing 51302
9thing 6223
Database
Cell Formulas
RangeFormula
L4L4=SUMPRODUCT(INDEX(E4:J9,ROW(C4:C9)-ROW(C4)+1,MATCH(TODAY(),E2:J2,0)+C4:C9),D4:D9)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,588
Members
449,039
Latest member
Arbind kumar

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