Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-2008, 02:53 PM
=?Utf-8?B?RWxzYSBMLg==?=
 
Posts: n/a
Filter question

Hi,
I have a Pivot Table in Excel 2007 with data. I have a Date column. I need
to filter the data so it shows me the data from 01-01-2008 and today date
minus 1 day. I would like to have the data filtered automatically (without
having to go everyday manually and change the filter date).

I can see some auto filters to filter for yesterday, today, the last month,
year to date, etc. I tried the Between option but it only lets me define
dates, it doesn't let me define references to other cells or formulas (like
=today()-1 for example)...

Can anyone help me on this please?

Thanks in advance,
Elsa
Reply With Quote
  #2 (permalink)  
Old 05-11-2008, 04:56 PM
Nick Hodge
 
Posts: n/a
Re: Filter question

Elsa

Consider a different approach as what you want is not really possible with
simple filtering. Making a few presumptions...

1) You data is in Excel (on another sheet)
2) The date column is column A
3) There are eight columns in the data
4) The sheet on which the data is is called Sheet1
5) The date column is sorted ascending
6) Your start date is the earliest date in the data source (If not you will
need a slightly more elaborate formula)

If you go to the formulas tab and click on name manager. Click 'Add'. Enter
a name for the range, say PivotData and in the Refers To: box, enter

=OFFSET('Sheet1'!$A$1,0,0,MATCH(TODAY()-1,'Sheet1'!A:A,0),8)

Click OK and then go to the sheet with your pivot table. Click in it and
click on the 'Options' tab in the PivotTable Tools tabset. Go to the Change
Data Source button on the Data group and click Change data source... In the
box that comes up type PivotData, or whatever you called your range and
click OK.

Your data will now dynamically change to reflect the data up to yesterday.
(If there is not data for every day you will sometime get no data as the
MATCH function will error if it does not find a match in the data to
yesterday's date.

Hopefully that works for you

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.excelusergroup.org
web: www.nickhodge.co.uk





"Elsa L." <ElsaL@discussions.microsoft.com> wrote in message
news:42D7F786-4B93-41A6-9ED3-22911435CA99@microsoft.com...
> Hi,
> I have a Pivot Table in Excel 2007 with data. I have a Date column. I need
> to filter the data so it shows me the data from 01-01-2008 and today date
> minus 1 day. I would like to have the data filtered automatically (without
> having to go everyday manually and change the filter date).
>
> I can see some auto filters to filter for yesterday, today, the last
> month,
> year to date, etc. I tried the Between option but it only lets me define
> dates, it doesn't let me define references to other cells or formulas
> (like
> =today()-1 for example)...
>
> Can anyone help me on this please?
>
> Thanks in advance,
> Elsa


Reply With Quote
  #3 (permalink)  
Old 05-11-2008, 05:55 PM
Shane Devenshire
 
Posts: n/a
Re: Filter question

Hi Elsa,

I assume you are trying to filter the pivot table, not the data area of the
pivot table. Here is one way you can do this:

1. Suppose your dates (in the data area) are in column F starting on row 4.
In the data area create a new field (column), say column G, and enter the
formula
=AND(F4>=DATE(2008,1,1),F4<TODAY()) in cell G4. Fill it down if necessary.
2. Suppose your dates are in the Row Labels area of the pivot table. Add
the new field so that the dates are one level below it.
3. Filter on the new field choosing True.

If you want to be fancy you could change the formula to read:
=IF(AND(F4>=DATE(2008,1,1),F4<TODAY()),"Current")
Then when you filter you would choose Current.

Cheers,
Shane Devenshire
Microsoft Excel MVP

"Elsa L." <ElsaL@discussions.microsoft.com> wrote in message
news:42D7F786-4B93-41A6-9ED3-22911435CA99@microsoft.com...
> Hi,
> I have a Pivot Table in Excel 2007 with data. I have a Date column. I need
> to filter the data so it shows me the data from 01-01-2008 and today date
> minus 1 day. I would like to have the data filtered automatically (without
> having to go everyday manually and change the filter date).
>
> I can see some auto filters to filter for yesterday, today, the last
> month,
> year to date, etc. I tried the Between option but it only lets me define
> dates, it doesn't let me define references to other cells or formulas
> (like
> =today()-1 for example)...
>
> Can anyone help me on this please?
>
> Thanks in advance,
> Elsa


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT. The time now is 04:39 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Montana Music | Online Advertising | Remortgages | Per Insurance | Secured Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114