+ Reply to Thread
Results 1 to 5 of 5

Pivot table can take a list separated by hours

  1. #1
    Registered User
    Join Date
    01-07-2019
    Location
    Mexico
    MS-Off Ver
    Office 365
    Posts
    3

    Unhappy Pivot table can take a list separated by hours

    Hello Everyone, I already joined to this Forum, in my Job I inherit a VBA macro that create a Pivot table from a big list, this list is separated by date and more important by hour, then many lines the same date even the same hour cause register many events in the same hour, the macro want to create a table by months and use the entire information but appearing is more than can be handle showing a message like this : " You cannot place a field that has more than 8000 items in the column area. If you want to use this field in the report, click OK, and then move the field to either the row area or page area"
    I review the main page where the code takes the info and I notice take more columns more that it needs, but way more... a lot more. I tried to change the code to fix that but I could not.
    Please help. Let me know if need more details or part of the code .
    Thanks

    Please Login or Register  to view this content.
    Last edited by herssain; 01-07-2019 at 02:35 PM. Reason: add info

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot table can take a list separated by hours

    Without seeing the data, I can only speculate on an answer.

    One way might be to group the data by whatever time period you want (Day, Month).

    The other would be to add helper column to the data such as =Int(A2) where Column A contains the individual record's time. This formula will "round" the day to a whole day. It will discard the time part.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    01-07-2019
    Location
    Mexico
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Pivot table can take a list separated by hours

    dflak, thanks for you time to answer, I will try that, yes I was thinking that I need I kind of filter to only see by day and join the records... I will try that but I investigate if I can use more than 65536 rows in a pvot table, I want to be sure if the limiting is the 8000 unique values, the formula you propose help with it???
    thanks in advance

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot table can take a list separated by hours

    If you truly have Office 365 as your profile indicates, then you have over a million rows with which to work.

    I highly suggest the following:

    1. Convert the data source into an Excel Table. The main reasons for this are:
    - Tables know how big they are. So when you change the number of rows in the table, the pivot table will keep up dynamically.
    - Tables "remember" formulas and copy them down automatically as data are added.

    Here is more information on tables: http://www.utteraccess.com/wiki/Tables_in_Excel - tables are very powerful so it is worthwhile getting to know how to use them. Another advantage of tables is that intellisense works well with them. If you select a cell in the table while composing formula it will insert the header name in like so: [@[Date]] which indicates the value in the Date Column on that row. Conversely, if you type the open bracket "[" it will suggest column headers you can use.

    [@[Date]] means a single cell, [Date] means the whole column that contains the dates excluding the header row and a total row it there is one. In other words, EXACTLY the data you want, no more, no less.

    2. Make three helper columns in your table. Assuming that the column that contains the date is called DATE
    = INT([@[Date]] this will "remove" the hours from the date, so you can gather data by whole days.
    = YEAR([@[Date]] this gets the year which is a handy filter to have.
    = TEXT([@[Date]],"mmm") this gets the three-letter month abbreviation; another handy filter to have.

    3. Do a web search on Slicers. Slicers are fancy filters that are both very powerful, but also make your reports look a lot more professional. They are easy to implement and very intuitive.

  5. #5
    Registered User
    Join Date
    01-07-2019
    Location
    Mexico
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Pivot table can take a list separated by hours

    dflak, thanks again, let me read about it, and I need to implement those in the macro, cause if I apply the table in the info failed, need to be implemented, let me try it.... have a excellent day. I will let you know how goes ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 05-12-2014, 10:51 PM
  2. Need a formula to sum hours from a pivot table if 3 requirements are met....
    By jaimeteele in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2013, 06:43 AM
  3. Replies: 3
    Last Post: 12-09-2011, 06:32 AM
  4. Timesheet Hours not adding correctly in a Pivot Table
    By MarvinP in forum Excel General
    Replies: 12
    Last Post: 01-24-2011, 03:26 AM
  5. pivot table-missing pivot table field list
    By sowmyav in forum Excel General
    Replies: 1
    Last Post: 01-08-2009, 02:29 PM
  6. Replies: 4
    Last Post: 06-14-2006, 12:20 PM

Tags for this Thread

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