Lookup a value in a row and the sum the corresponding rows in colu

B

bjw

Row 28 is workcenter names (L1, L2, B1)
Rows 29 through 105 are production cases for each workcenter by calendar day
I want to lookup L1 in row 28 and the sum the first 7 rows under L1 so i get
a total # produced for L1 for the first 7 days. Then i want the first 14
days, then 28 days.
I am not having any luck getting anything to work. Workcenter may not be in
the same column every time and the dates will always change depending on the
time frame i use.
L1 L2 B1
11/26/07 500 600 250
11/27/07 500 500 500
 
T

T. Valko

Maybe something like this:

=SUM(OFFSET(A28,1,MATCH("L1",28:28,0)-1,n))

Where n = the number of rows to include in the sum.
 
B

bjw

Thank you. That worked.

T. Valko said:
Maybe something like this:

=SUM(OFFSET(A28,1,MATCH("L1",28:28,0)-1,n))

Where n = the number of rows to include in the sum.
 

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