sumproduct on a variable range

M

Mike Proffit

Hi All.

A1:A5 lists the number of times a part is used in an assembly
B1:B5 lists the number of each assembly I want to build
B6 = SUMPRODUCT(A1:A5,B1:B5), which successfully gives me the total demand
for the part.

Now I want to expand the build range to be based on the lead time of the
part. So now A6 = 5, representing 5 weeks. I want a formula in B6 that sums
each of columns B, C, D, E, F * A1:A5.

trying B6 = {SUMPRODUCT(A1:A5,B1:F5)} as an array fomula or not yeilds
#VALUE error since (I think) the range shapes are different.

Ultimately, I want the sum of A1:A5 * each of the columns offset to the
right up to the lead time value in A6. In this case, offset 0, 1, 2, 3, 4,
5.

I'm stumped!

Thanksomuch,
Mike Proffit
 
M

Mike Proffit

That works if arrays 2 - n of the sumproduct function are known. Problem
here is that there are varying numbers of columns to include in the formula,
determined by the lead time value in A6.

I'm thinking a custom function is needed. I'll post in that group.

But Thanks!
MikeP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top