+ Reply to Thread
Results 1 to 5 of 5

Pivot Table / Chart

  1. #1
    Registered User
    Join Date
    11-14-2011
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    4

    Pivot Table / Chart

    Hi,I hope there is a relatively easy solution to an issue I've tried to resolve and am completely stumped!!! The information I'm working relates to airline arrivals and departures.I get a simple spreadsheet on a monthly basis (I've attached an abbreviated copy) that tells me:Flight 123 will arrive at xx:xx time and depart at yy:yy time on dd/mm/yyFlight 234 will arrive at xx:xx time and depart at yy:yy time on dd/mm/yyetc.The problem I'm having is the format of the arrival and departure information: it currently is listed in the columns as "Effect" for the first date it will occur that month, and "Discon" for the last date it will occur that month. (ie: Flight 123 will start arriving on 4/02/11 and do so daily until 4/17/11.What I'm trying to do is manipulate the spreadsheet so it will display the info for the inclusive dates in between....ie: Flt 123 also comes in on 4/03/11, 4/04/11, etc. If it could do that, I could then do a simple pivot table based on the dates and arrival/departure times. (the second page of my attached sheet is the pivot table I've got so far).My goal with the pivot table is to reflect simply each day of the upcoming month, and to reflect the total flights arriving between 0700-0759hrs that day, between 0800-0859hrs that day, etc. Is this something someone could review and give me some guidance? I'm not very proficient at Excel yet, but I'm learning! Thank You,Dave(Also... if what I've described is possible, there will be another issue to deal with: the Column "Frequency" reports whether these flights are "daily", or limited to certain days of the week. (For instance "x7" means it does not operate on Sundays, "135" means it operates only Mon, Wed, and Fri. "Daily" of course means 7-days a week.)
    The attached is an abbreviated version of the spreadsheet....
    Attached Files Attached Files
    Last edited by DJGassman; 11-19-2011 at 06:50 AM. Reason: Clarification

  2. #2
    Registered User
    Join Date
    11-14-2011
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Pivot Table / Chart

    Bump No Response

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pivot Table / Chart

    Try this:

    Please Login or Register  to view this content.
    Last edited by shg; 11-20-2011 at 02:34 PM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    11-14-2011
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Pivot Table / Chart

    Thank you so much for your time and effort! Could you now please explain how I "run" this code? My knowledge of Excel is pretty limited, and I really don't know how to apply this to a spreadsheet.

    Dumb, I know... but I'm just learning about all this.

    Thanks, Dave

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Pivot Table / Chart

    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste
    To run the Excel VBA code:

    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1