show only hour in pivot table

Junk

New Member
Joined
Mar 7, 2006
Messages
19
Please see the example below. I have a bunch of time values that I have converted to local times. The times are formatted as times and have dates attached to them. What I'm trying to show is a pivot table with the dates in rows and the hours requiring coverage in columns. When I do this, my columns end up being way too many as it still maintains the date with the hour.

I'd like the rows to be like 1/14, 1/15, 1/16 etc, then the columns being 8am, 9am, 10am etc. I'm trying to show the times we need coverage for the scheduled events.

Any help would be greatly appreciated. Thanks.
Book9
ABCDEFGHI
1FullLocationRetailerTypeLocalTimeStrLocationDayDateTime
2X-Store-01111XStore8:00AM1111ORFRI1/18/200811:00
3y-Store-02222yStore7:00AM2222ALFRI1/18/20088:00
4z-DC-03333zDC5:00PM3333MNFRI1/18/200818:00
5X-DC-44444XDC7:00AM44444MSFRI1/18/20088:00
All Locations


Would like it to look similar to the below.
Book9
ABCDEFGHIJKLM
8Time
9Date7am8am9am10am11am12am1pm2pm3pm4pm5pm6pm
1018-Jan211
All Locations
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Junk,

In a Pivot Table, you can group based on hours, days, month, etc. Assume column A of the PT is your field called DATE.
1. Place the cursor on any entry below the column heading.
2. Right click to display a pop up menu.
3. Select Group and Show Detail
4. Select Group... from the small pop up menu
5. Select the time elements you want to group by

Use the scroll bar on the right to move up and down the list of options. You can select more than one option (say Year and Month) to create more than one level of groupings.

I hope this helps.

Good luck,

General Legder
 
Upvote 0
Sorry for the late reply, but that's perfect. Never knew that was an option. Thanks.
 
Upvote 0
Junk,

I am so happy to hear I was able to help. I used pivot tables for years before I learned about grouping on time.

Here is something else I did not know for may years. If you have a pivot table with a Page item, Excel can create a seperate worksheet (each with the same pivot table) for each Page item.

Using your data, suppose you have a pivot table with LOCATION as a page item. When you click on the down-pointing arrow to the right, you can select one LOCATION so only records related to that LOCATION are included in the pivot table.

Right click on the main toolbar area to display the list of all toolbars you can add. Check the one for Pivot Table to diplay the toolbar.

Have your cursor somewhere on the pivot table. From the Pivot Table toolbar, click the Pivot Table option to display a menu of options. Select the last item, Show pages....

A pop-up menu asks for the field to use. Select field and OK.

Excel does the rest.

Enjoy.

GL
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top