Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default weird date issue

I have a worksheet that holds daily sales data for the last 5 years,
by day. I am trying to aggregate that data into a new worksheet by
week. sheet 2 is organized by week number. I have a week number
assigned to each row in the first worsheet. What I want to do is to
grab the start and end dates from sheet one based on the week number
in sheet two. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default weird date issue

Are week numbers sequential across the 5 years or do they start over each
year

assume sequential (1 to 5*52)

Assume dates in column A and weeknumber in Column B. Assume dates sorted
chronologically.

so to get first day for week 137

=index(sheet1!A:A,Match(137,Sheet1!B:B,0),1)

should get you the first date

=index(sheet1!A:A,Match(137,Sheet1!B:B,0),1)+7

should get the last date of the week.

--
Regards,
Tom Ogilvy

"Jon Tillman" wrote in message
...
I have a worksheet that holds daily sales data for the last 5 years,
by day. I am trying to aggregate that data into a new worksheet by
week. sheet 2 is organized by week number. I have a week number
assigned to each row in the first worsheet. What I want to do is to
grab the start and end dates from sheet one based on the week number
in sheet two. Any ideas?



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
Please please help!! Weird coding issue Neil Holden Excel Discussion (Misc queries) 1 February 12th 10 03:48 PM
Weird issue with very simple line chart - urgent Totteridge Ram[_2_] Excel Discussion (Misc queries) 3 October 9th 09 09:49 AM
Weird Printing Issue Michelle K Excel Discussion (Misc queries) 0 November 27th 06 08:38 PM
Weird date formatting Christine New Users to Excel 5 November 19th 06 10:47 PM
This is Weird - Dead Simple Issue with Sum Function Neilibeg Excel Worksheet Functions 2 July 16th 05 08:15 PM


All times are GMT +1. The time now is 06:13 AM.

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

About Us

"It's about Microsoft Excel"