Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Group Dates

Hi Arvi

How can I make the formaula give the title "Last Week" instead of the true
statment?

Thanks

"Arvi Laanemets" wrote:

Hi

Last Week/Month/Year ? I assume you did mean current one?

Easiest way will be:
Add columns CurrWeek, CurrMonth, Last3Months, Last6Months, CurrYear,
OldOnes, p.e. columns B:G, with your dates in column A.

Depending on your week definition
B2 = ((TODAY()-WEEKDAY(TODAY(),1))<$A2) (US week definition)
or
B2 = ((TODAY()-WEEKDAY(TODAY(),2))<$A2) (European week definition)

C2 = (DATE(YEAR(TODAY()),MONTH(TODAY()),1)<=$A2)

D2 = (DATE(YEAR(TODAY()),MONTH(TODAY())-2,1)<=$A2)

E2 = (DATE(YEAR(TODAY()),MONTH(TODAY())-5,1)<=$A2)

F2 = (YEAR($A2)=YEAR(TODAY()))

G2 = (YEAR(A2)<YEAR(TODAY()))

Copy formulas down for whole your table (I assumed the 1st row will contain
column headers).
Now you can use Autofilter to get wanted set of data displayed.


Arvi Laanemets


"Dave" wrote in message
...
Hi,

I would like to be able to group dates into the following categories:

Last Week
Last Month
Last 3 Months
Last 6 Months
Last Year
Over a Year

How do I do this? This needs to work on a weekily basis i.e. to calculate
from the date the sheet is opened.

ANy help would be greatly appreciated.

Thanks




 
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
group of dates Savio Excel Discussion (Misc queries) 1 January 31st 09 08:03 PM
Can't Group Dates in Pivot Table mattgoof2005 Excel Discussion (Misc queries) 13 August 6th 07 04:22 PM
Group Dates from SQL Query wjvii Excel Discussion (Misc queries) 1 March 22nd 07 11:52 PM
Why aren't dates always available to group in pivot tables? JLM Charts and Charting in Excel 4 December 31st 05 06:25 PM
PivotTables - Group Dates, excluding dates Todd1 Excel Discussion (Misc queries) 4 December 10th 05 05:06 PM


All times are GMT +1. The time now is 01:58 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"