vlookup to sum different columns....BUT....

mart biesheuvel

New Member
Joined
May 3, 2013
Messages
2
HELLO EXCEL fans & pro's

i have a have a matrix in a separate sheet a9:bb70 [where columns c9:bb9 are the 52 weeks of the year]
each row [9 to 70] represents totals [hours] of a particular project in any of the 52 weeks

i have another sheet where a user can select a period of time [start week]E3 and end week F3. say weeks: 1 to 4

my search function needs to search in the matrix for each project but ONLY summing the numbers given the variable period of time chosen [e3 and f3]

i can upload the 2 sheets though don't know how here.
yrs
mart
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
=sum(index(c10:bb70,,e3):index(c10:bb70,,f3))
scott, thanks
but this formula returns the sum of all rows within the columns set by e3 and f3.
eg if e3 =[week]4 and f3 =[week]10 i want to pull the total per particular row within the c10:bb70 matrix

ie. a particular row = a particular project for which i need totals between, say, week 4 and 10 NOT
the totals of all projects [all rows] in period week 4 to 10

cheers

mart
[combine with a vlooup??]
 
Upvote 0
=sum(index(c10:bb70,,e3),index(c10:bb70,,f3))

This would be the sum of both columns, how are you indicating which row you want to sum?
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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