Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default Pushing my luck, Sumproduct based on current data

I have a workbook that has data on 104 worksheets (2 years).

The worksheets are labeled 1 through 104, easy enough

Every week data is populated to one of the worksheets. This week it
was worksheet 35, next week it will be worksheet 36 and so on.

On the report (Summary) worksheet I have a cell ( CO2 ) that has to
search for a value on the worksheets and put the newest data in.

The formula would be something like =(SUMPRODUCT(--('35'!$C$2:$C$400=$A
$1),--('35'!$A$2:$A$400=$B2),'35'!$H$2:$H$400))/100

The tricky part becomes when the week changes over.

In other cells I have used =IF('38'!$A$1="","",((SUMPRODUCT(--('38'!$C
$2:$C$400=$A$1),--('38'!$A$2:$A$400=$B2),'38'!$H$2:$H$400))/100))

But in this instance I need CO2 to populate the data with the matching
cell from the latest week. It somehow needs to determine there is no
data in worksheets 36-104 and seacrh worksheet 35 for the matching
data. Next week, after the data load, it needs to determine there is
now data in worksheet 36 and search worksheet 36 for the matching data
instead of worksheet 35.

Thanks in advance for any assitance you can provide.

Don Flak
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Pushing my luck, Sumproduct based on current data

An idea...

If the data is updated starting from a specific base date and the update
occurs on a specific weekday then you could probably count the number of
update weekdays since the base date to determine which sheet to reference.

For example, if the data is updated every Monday and 35 Monday's have passed
since the starting base date then you should be able to use this as the
basis of which sheet to reference.

???

--
Biff
Microsoft Excel MVP


wrote in message
...
I have a workbook that has data on 104 worksheets (2 years).

The worksheets are labeled 1 through 104, easy enough

Every week data is populated to one of the worksheets. This week it
was worksheet 35, next week it will be worksheet 36 and so on.

On the report (Summary) worksheet I have a cell ( CO2 ) that has to
search for a value on the worksheets and put the newest data in.

The formula would be something like =(SUMPRODUCT(--('35'!$C$2:$C$400=$A
$1),--('35'!$A$2:$A$400=$B2),'35'!$H$2:$H$400))/100

The tricky part becomes when the week changes over.

In other cells I have used =IF('38'!$A$1="","",((SUMPRODUCT(--('38'!$C
$2:$C$400=$A$1),--('38'!$A$2:$A$400=$B2),'38'!$H$2:$H$400))/100))

But in this instance I need CO2 to populate the data with the matching
cell from the latest week. It somehow needs to determine there is no
data in worksheets 36-104 and seacrh worksheet 35 for the matching
data. Next week, after the data load, it needs to determine there is
now data in worksheet 36 and search worksheet 36 for the matching data
instead of worksheet 35.

Thanks in advance for any assitance you can provide.

Don Flak



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
'Pushing' data from 1 sheet to another Learner101b Excel Discussion (Misc queries) 4 January 21st 08 10:39 AM
'Pushing' data from 1 sheet to another Learner101b Excel Discussion (Misc queries) 0 January 20th 08 06:57 PM
Sumproduct based which also weights data based on date ExcelMonkey Excel Worksheet Functions 6 February 4th 07 08:51 AM
Pushing my luck gb_S49 Excel Worksheet Functions 6 April 11th 05 06:01 PM
LUCK ? OZDOC1050 Excel Worksheet Functions 3 December 29th 04 01:13 PM


All times are GMT +1. The time now is 03:00 AM.

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"