# Group Numbers Into Workable Ranges In Order To Run A Pivot Table (days Taken To Update)

Apr 28, 2014

Cells in row C have numbers (number of days between date a and date b)

I want to group the days so I can run a usable pivot table as follows:

Up to 7 days between update date and today (ie 1 week) 8-14 days between update date and today (ie 2 weeks) 15-21 days (ie 3 weeks) 4 weeks +

My attempt is as follows but only give two results and not 4?

=IF(OR(C2<=7),"1-7days",IF(OR(C2>=8,C2<=14),"8-14days",IF(OR(C2<=21,C2>=15),"15-21days","Over4weeks")))

## Pivot Table Report Daily Data & Group Same Days In Year

Feb 23, 2008

Last week I posted a question related to formatting a cell to return a Day of the Week versus a numerical representation IE "Wed" instead of 02/20/2008 12:00AM. The solution provided worked for me:

1) Format cell to DDD MM/DD/YYYY HR:MN. Cell range (A1:A500)
2) Format destination cell with DDD. Cell range (B1:B500)
3) Destination cell (B1) = to original cell A1
4) B1 displayed data as "Wed"

However, the issue I still have is; I wanted to create a pivot table summarizing a year activity by Day of Week (in other words 7 entries for the year) and the pivot table still recognized all the MM/DD/YYYY. I ended up with a table displaying every day of the year instead of a yearly summary by Day of Week. Is there some way to strip out all the other numerical data from the new column I created to run a pivot table by Day of the Week for a whole years activity?

## How Can I Count Workable Days

Jan 15, 2009

when I try to calculate the worked days between two dates using the formula "Networkdays" in excel, the result just count the days from Monday to Friday.

Example:

If I want to calculate the workable days from 12/1/08 (Start_date in cell A1) to 1/14/09 (End_date in cell A2) by using the formula: =NETWORKDAYS(A1,A2)

the result will be 33 days, but due to fact that I also need to count Saturdays, the result that I need must be 39 days.

## Pivot Table Group :: Group By Integers And Not By Months, Years Etc?

Nov 12, 2009

I have date fields as column labels in a pivot table. When I try to group them I'm only given the option to group by integers and not by months, years etc.

I've had a look at the format settings of the column and they are formatted as date fields.

## Months To Be Sorted In Ascending Order In Pivot Table, Want To Use Multiple Colors In Pivot Charts

Sep 18, 2008

My input data for Pivot table has a column named "Month". The month values are like April 07, April 08, Nov07 in random order for period between Jan 07 to Aug 08.

When I create a pivot Table, this column is sorted alphabetically (April 07 is followed by April 08) but I need it to be sorted in the ascending order with respect to month (April 07 is followed by May 07).

I further use this data to plot a Pivot Chart. There is another issue here. I want to use separate colors for each series. I do not know how to achieve above 2 things.

## Group Field Not Available In Pivot Table?

May 7, 2014

why the Group Field option is not available in my Pivot Table. Other Pivot Tables in the same document, using data formatted the same way will let me format the data (the original data is in MM/DD/YY [h]:mm format). I have floored my data so that I can group by hour of the day, but it's not letting me do that.

## How To Get Year From GROUP Pivot Table

Aug 18, 2014

I have a column called Received Date (cell/column is format in dd-mm-yyyy that's found under 'Custom') which I make it into a pivot table, and GROUP it based on Year and Months.

Below is a look of it

-2012

Sep

Nov

-2013

Aug

Nov

-2014

Jan

Feb

Mar

Where the - sign is actually the expand of the year to see all the months in that particular year.

My question now is, how do I get the year from each of the month?

how do I get the "year" for the month of Nov in 2012 and 2013?

## Pivot Table Will Not Group Date

May 1, 2007

I am challenged/very frustrated with my pivot table which will not group dates (returns an error message).

In reading other posted questions, I see that my problem is caused by empty date cells. Is there a way around this?

My spreadsheet will be used daily to input Invoice details - part of which is the date of invoice. If I were to select 'refresh data', this would not be pulling through any new data as it wouldn't be in the range. I had made my range A1:K1500 to incorporate future entries, but then I have empty date cells as to date there are only 200 entries.

## Pivot Table - Group Columns By Date

Jun 16, 2014

Not sure if this is possible but I have a sheet of data which is effectively a project plan. It has a list of resources, role and phase etc. I then have lots of rows which are w/c dates and under each "week" I have the amount of hours or days they work. So for each person I can record their hours etc.

I then need a Pivot which basically collates the data and displays each phase's total hours but month. There maybe multiple phases or and each person may appear in each phase

I've attached an example - Excel Problem.xlsx‎

## Group Dates In A Pivot Table Slicer

Dec 31, 2013

I am currently working with a pivot table someone else created. The data set has dates only, in the correct format. The slicer has the dates categorized by month and excludes the dates in which there was no data.

Here is my problem: I added a few new months of data. Everything is calculating just fine in the Pivot table. However, my slicer where I should be able to pick the month now has these months listed as all their individual dates. I want to put the December dates under "December" and so on. The data that was present before I loaded anything additional still has this feature.

How do I group these dates, to be able to them as months? By the way, the grouping function is grayed out.

## Group By Fiscal Year In Pivot Table

Nov 8, 2002

When I group information in a pivot table by date, and select quarters or years, it is of course based on a calendar year. Can this be done by fiscal years?? using an addin or something, where I set the start month of the custom fiscal year.

## Group Or Categorize Fields In Pivot Table?

Nov 28, 2012

My data has a field for "Donor Type." There are about 2 dozen types of and about half of them start with the letters CF. When I do a pivot table, instead of getting 2 dozen rows of data I'd like all the CF donors to be in the same row. Is there a way to do that without changing my data? Some sort of filter or grouping within the pivot table?

## Pivot Table - Group Data By Month

May 21, 2014

I have a range of data over approx 300 rows. The first column contains dates.

I have created a pivot table and want to group the data by month. I have right clicked the table, grouped by months and selected the whole year as the date range.

For some strange reason the pivot table starts at 1/1/14 but ends at 21/2/14? It will not show the whole year.

## Excel 2007 :: Pivot Table - Can't Group On Dates

Aug 8, 2012

I have a stripped down data source for debugging purposes. I only have 4 rows of data for test purposes. The dates are formatted as dates.

When I create the pivot table the dates become my column values. When I select the first date in the pivot table the Group By Field menu option is grayed out. I tried setting a tabular format but didn't work.

## Pivot Table - Incorporate Calculated Field For Sub Group

Sep 6, 2012

How to incorporate a calculated field for a sub group.

Here's what the data in the table looks like.

Competitive

Managed

ID
A
B
C
A
B
C

[Code] .....

I am looking to get 3 calculated fields onto the Right hand side that would essentially be the following Formula
=IF(L4"",IFERROR(D4/H4,"n/a"),"")

Thus,
1st Column
=IF(Competitive(A)"",IFERROR(Competitive(A)/Managed(A),"n/a"),"")

2nd Column
=IF(Competitive(B)"",IFERROR(Competitive(B)/Managed(B),"n/a"),"")

3rd Column
=IF(Competitive(C)"",IFERROR(Competitive(C)/Managed(C),"n/a"),"")

The other option would be how to set up conditional formatting to always take on the appearance of Column K of the pivot table. Thus, this calculated section would always appear as though a part of the pivot table and would adjust based on any pivot table items being expanded and collapsed.

## Keeping Field Order The Same In Pivot Table?

Dec 24, 2013

I have a table with two columns: 'Serial' and 'Read Date'. The table represents all those serials that failed to read at a certain time and date. For example:

4028543 10am Dec 16
4028544 10am Dec 16
4028566 10am Dec 16

[Code].....

I know you can move them manually but I have 73 reads so far and that's a lot of manually moving columns about.

I'd like to get Excel to use the original order of the Read date entries.

## Pivot Table Columns In Month Order

Mar 17, 2007

I have a couple of Pivot Tables that I create each month summarising my Income and Expenditure. The only problem I have is making the columns appear in the correct order, i.e. where July is month1 through June(the following year) being month 12 to coincide with my financial year. Oddly enough last month (January) was fine, following December.

This month January and February appear in columns 1 & 2.

## Unable To Group Dates In Pivot Table Despite Formatting The Column

Dec 11, 2013

I have a database of roughly 9000 rows. My first sheet is this data in a raw format (Masterdata!). Each row is a fire-rescue response call and therfore has a time stamp. The raw data uses different formats to provide the time stamp. My second sheet is my filtered data (Filtereddata!). In order to make these time stamps uniform I have a formula that looks at the Masterdata! timestamp column and if it is in a numeric format changes it to a text date and if it is a text date perserves it.

=IF(ISNUMBER(Masterdata!K:K),TEXT(Masterdata!K:K,"dd/mm/yyyy hh:mm"),Masterdata!K:K)

This gives me the "timestamp" which has both the incident start time and the date. I have =left and =right formulas breaking apart the date and the time. Therefore I have two columns on my Filtereddata! for the date of the incident and the time the call came in. What I would like to do is run some pivot tables and group incidents by month. I am unable to group them once I run the pivot table. I get a "Unable to group these items" (or something like this) message. I have assured multiple times that the date column is in DATE format. However, when I change the date to long date or short date I see no changes in the column so I am assuming there is something happening that I'm missing. The formula populating the date column on Filtereddata! is as such:

=LEFT(frfiltereddata[[#This Row],[Timecode]], FIND(" ", frfiltereddata[[#This Row],[Timecode]], 1))

## Months Displayed In Proper Order In A Pivot Table

Oct 1, 2008

I need to build a macro that creates a pivot table that displays data for the last 13 months, by month (e.g. Sep 07 - Sep 08). My table has a column for months and another one for years. My question is: to run the macro succesfully, how should I build my table, or make the pivot table, in order to get the months displayed in proper order (Aug 07, Sep 07, Oct 07, Nov 07, Dec 07, Jan 08, Feb 08,.......Jul 08, Aug 08)

## First Key Sort Order Not Working Properly In Pivot Table

Jul 23, 2012

I have entered a custom sort order under 'first key sort order,' but the field is not sorting according to the list.

I'm sure I entered the list correctly, because I actually entered it a long time ago, and it was working for a while. However, today the underlying data was temporarily erased, and the pivot table, when refreshed, basically went blank. I restored the data and refreshed the table, but this field is back to sorting in the wrong order. Refreshing the pivot table and re-choosing the appropriate sort options do not work.

## Can't Update Pivot Table

Jun 24, 2014

When I tried to Refresh the Pivot Table, the message I got was: The PivotTable field name is not valid. To create a PivotTable report, you must use data that is organized as a list with labeled columns. if you are changing the name of a PivotTable field, you must type a new name for the field. I did go in a check that all the columns are named though.

## Pivot Table Update

Sep 11, 2008

I've created a pivot table that summarizes sales and gross profit on a quarterly basis and YTD basis by Market and store. I have a drop down in my source data file which changes the month. I go to update the pivot table and it no longer recognizes the data fields because the headings change to the subsequent month. Is there a way to not have to recreate the pivot table every time a run a new period? See below. Once I run August and then refresh the data it will not recognize these fields any longer.

## Pivot Table Update Within Groups

Sep 30, 2008

I have a data table that looks somewhat like this a number of rows of "Date", "ID#" and other extraneous fields.

I have a pivot table that simply lists the total count by date, then i grouped it by month and then by quarter:

Date4 Date2 Date Count of ID 2008-Q4 76 October 2008 29
10/1/08 8
10/15/08 19
10/21/08 1
10/31/08 1

November 2008 25
11/1/08 2
11/15/08 19
11/21/08 1
11/29/08 2
11/30/08 1

December 2008 22
12/1/08 1
12/15/08 19
12/21/08 1
12/31/08 1

My problem is, when i add a new row to the main table, say with a date of "December 20, 2008", and refresh the pivot table, the information ends up clear at the bottom (in this case, after the year 2014).

I figured the pivot refresh would place the data among the other December 2008 rows in the pivot table.

## Pivot Table Update From Combo Box

Jun 13, 2007

I have a pivot table on a hidden sheet and a combo box the user picks from. I would like a macro or formula that could change my pivot table Page Value to that which is chosen from the combo box. Then update the pivot table. I can then use my report to look up values from this pivot as needed.

## Pivot Table Group :: Fill Missing Cells With A Data On Workbook Open

Sep 18, 2008

new data goes into the report, the pivot table looks at a dynamic range and confirmed that the range doesn't select any empty cells.

Just wrote a macro to fill missing cells with a data on workbook open.

all the data is date form, yet still when i refresh the pivot table i look my montly grouping, when i try to group again it says "unable to group"

## Pivot Table Ranges

Aug 4, 2007

I have just created a pivot table, however, i have just put the range to the cells that have data in them. The problem is, is that i want to make the cell range bigger, but the cells that i want to include do not have data YET, but will in the future. I have tried creating the pivot tables including the cells with no values, but it ends up puting 1 into the pivot tables cells for some reason.

## Calculate Number Of Days Between Two Dates Within A Pivot Table?

Feb 3, 2014

I have been using Excel to display, sort and present data in a professional way. I have created a pivot table with two columns below. Column C indicates the start date. Column D indicates the completion date. Blank cells show live data. I need to determine the number of days. 1) That have been - completed - a) That were < 2 Days, b) >2 but less than a week, c) > than a week (all). I have used the following formulas. a) countif(D4:D61, "<3"), b) countifs(D4:D61, ">2", D4:D61, "<=8"). Easy for completed data. My problem is, how do I determine the number of days, live data that following the same queries as above. I have figured out I can use countif to count the number of blanks by - countif(D4:D61, "(blank)") but how to put it all together and what formula should I use. I am trying to use countifs or if statements but am totally lost.

Column C Column D
---------- ----------
06/01/2014(blank)
25/11/2013(blank)
13/12/201314/01/2014
27/12/201317/01/2014
27/12/201310/01/2014

## Update Pivot Table(s) And Breakout Durations

Dec 15, 2013

I created a Pivot Table with employees summarized or total hours, which also totals up their billable charges. I would like to "read" the pivot table & break it down to the employees weekly or monthly hours & billable.

I was going to use the following function, but can't use because there is not a column that finds the employee's name several times:

=SUMPRODUCT(--(\$B\$7:\$B\$4995>=AN3),--(\$B\$7:\$B\$4995<=AN4),--(\$B\$7:\$B\$4995=\$G\$7),--(\$D\$7:\$D\$4995))

From Pivot Table:

Employee A 56 \$7,280.00
XX 56 \$7,280.00
07/17/2013 3 \$390.00
07/18/2013 9 \$1,170.00
07/19/2013 4 \$520.00
07/22/2013 9 \$1,170.00
07/23/2013 4 \$520.00
07/29/2013 7 \$910.00
07/30/2013 4 \$520.00
07/31/2013 3 \$390.00
08/07/2013 9 \$1,170.00
08/08/2013 4 \$520.00

Also, I was going to upload an example & removed some confidential content from the original log file in which the pivot table(s) came from but don't see the pivot tables updating or giving error messages from lost data.

How does that pivot table update then? I hope I don't have to re-create it again.

## Pivot Table Formatte Change On Update

Mar 1, 2007

When I update the pivot table with new data, the column where I have some percentage numbers the formatting changes. One number goes back to standard. The new numbers that enter the column also enters as standard numbers. How do I get the column to stay in percentage numbers?

## Update Column Characteristics In Pivot Table

May 22, 2012

I have a spreadsheet that has a top row of weeks ranging from 1/1/2012 to 1/1/2015

I am making a pivot table to show a sum of each column by user (in column A of the source). My problem is this, I need to show the dates and there related values in the top row of the pivot table, and the users as the rows. My problem is two fold - how to display dates across the top row of the pivot (only when a value exists) and then how to make sure the value is a sum rather than a count.