Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bjw bjw is offline
external usenet poster
 
Posts: 12
Default Lookup a value in a row and the sum the corresponding rows in colu

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup a value in a row and the sum the corresponding rows in colu

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.

--
Biff
Microsoft Excel MVP


"bjw" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bjw bjw is offline
external usenet poster
 
Posts: 12
Default Lookup a value in a row and the sum the corresponding rows in

Thank you. That worked.

"T. Valko" wrote:

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.

--
Biff
Microsoft Excel MVP


"bjw" wrote in message
...
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




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup a value in a row and the sum the corresponding rows in

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"bjw" wrote in message
...
Thank you. That worked.

"T. Valko" wrote:

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.

--
Biff
Microsoft Excel MVP


"bjw" wrote in message
...
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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMPRODUCT: Can you use this and sum the values from multiple colu Gwynneth Excel Discussion (Misc queries) 8 November 20th 08 12:31 AM
how to i add the first six values of of a row when in various colu Cecilia Excel Worksheet Functions 5 September 11th 06 10:51 PM
Coverting data from some columns to rows (but not the primary colu sjn Excel Discussion (Misc queries) 5 January 17th 06 12:02 AM
Looking to check a cell on ws1 against data in ws2 that is 7 colu. Kenner Costen Excel Worksheet Functions 1 December 30th 04 02:33 AM
How do I sum a range after 2 different conditions are met (2 colu. Holly B. Excel Discussion (Misc queries) 3 December 21st 04 04:47 PM


All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"