#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 25
Default pivot table

I have been tasked with putting together a pivot table for my group that will
highlight if a persons vacation falls within blackout dates. Right now I have
a list of names and a start and end date for there vacations. I also have a
list of blackout dates set up with start and end dates. Not sure about where
to start or if this can be done? Below is what I have so far
Tab 1
A B C
1 John Doe 10/1/08 10/8/08
2 Jane Doe 1/2/08 1/9/08

Tab 2
A B C
1 blackout A 1/7/08 1/20/08
2 blackout B 9/28/08 10/2/08

I need to know that John & Jane Does vacation is scheduled on a blackout
date. Any help would be greatly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 897
Default pivot table

Why bother with a pivot table, this formula returns TRUE if the
person's vacation start date falls inside the blackout period.

=(OR(AND(VacationStartBlackOutStart,VacationStart <BlackOutEnd),AND(VacationEndBlackOutStart,Vacati onEnd<BlackOutEnd)))

where

VacationStart = named cell with vacation start date
VacationEnd = named cell with vacation end date
BlackOutStart = named cell with blackout start date
BlackOutEnd = named cell with blackout end date

I didn't account for holidays or weekends, but this should be a start.

HTH,
JP

On May 9, 11:56 am, Carolina Girl
wrote:
I have been tasked with putting together a pivot table for my group that will
highlight if a persons vacation falls within blackout dates. Right now I have
a list of names and a start and end date for there vacations. I also have a
list of blackout dates set up with start and end dates. Not sure about where
to start or if this can be done? Below is what I have so far
Tab 1
A B C
1 John Doe 10/1/08 10/8/08
2 Jane Doe 1/2/08 1/9/08

Tab 2
A B C
1 blackout A 1/7/08 1/20/08
2 blackout B 9/28/08 10/2/08

I need to know that John & Jane Does vacation is scheduled on a blackout
date. Any help would be greatly appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 477
Default pivot table

Paste this single formulainto cell D1 and copy down

=IF(ISNUMBER(MATCH(TRUE,(B1=Sheet2!$B$1:$B$2)*(B1 <=Sheet2!$C$1:$C$2)+(C1=Sheet2!$B$1:$B$2)*(C1<=Sh eet2!$C$1:$C$2)0,0)),"x","")

Hope this helps,

Jim May

"Carolina Girl" wrote:

I have been tasked with putting together a pivot table for my group that will
highlight if a persons vacation falls within blackout dates. Right now I have
a list of names and a start and end date for there vacations. I also have a
list of blackout dates set up with start and end dates. Not sure about where
to start or if this can be done? Below is what I have so far
Tab 1
A B C
1 John Doe 10/1/08 10/8/08
2 Jane Doe 1/2/08 1/9/08

Tab 2
A B C
1 blackout A 1/7/08 1/20/08
2 blackout B 9/28/08 10/2/08

I need to know that John & Jane Does vacation is scheduled on a blackout
date. Any help would be greatly appreciated.

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
how to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Copying values from pivot table to cells outside pivot table richzip Excel Discussion (Misc queries) 4 January 16th 08 11:03 PM
Filter lines with Pivot table and non pivot table columns Grover Charts and Charting in Excel 4 September 28th 07 03:16 AM
Filter lines with Pivot table and non Pivot table columns Grover Excel Discussion (Misc queries) 1 September 26th 07 12:48 AM
How do I create a pivot table if the pivot table icon or menu ite. Lynn@WS Charts and Charting in Excel 1 December 16th 04 02:36 AM


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