Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2017, 01:02 PM
hollies hollies is offline Pivot Table problem Windows 7 64bit Pivot Table problem Office 2016
Novice
Pivot Table problem
 
Join Date: Jun 2017
Location: Nottinghamshire
Posts: 25
hollies is on a distinguished road
Default Pivot Table problem

Hi I have a pivot table that is not acting how I want it and I cannot fathom out the problem

It is a simple PT at the moment with 4 columns, see attached.

The main table has 13 Columns and several hundred rows and is a record of the places we have been to.

Some places we have been to only once and others up to 18 times over the years.

The pivot table is to show only the last time we visited a place but then I want another column to show the Next Time we are heading there.

From my attached sample table you can see that Malvern is just showing (blank) and that Guildford is on 2 lines showing the Next Date and (blank) below it. The Next Date entry is correctly in line with the Max Of Date (2015) (last time) but the (blank) is in line with an even earlier time we visited (2013).



Malvern was identical but is just showing (blank) on the one line because I have removed the Next Date from the main table. If I double click on the Malvern row, the (blank) disappears along with the border lines leaving just white space.

Over 810 of the other rows are perfect but I cannot get to the bottom of why these couple of places should be like this.

I have checked all entries for accuracy, where a place as more than one entry, I have actually copied the first entry to the following cells so there are no typos or extra spaces anywhere, that I can find anyway.

Any help on this would be appreciated.

Thanks Rob
Attached Files
File Type: xlsx PivotTest.xlsx (8.9 KB, 20 views)
Reply With Quote
  #2  
Old 07-23-2017, 01:37 AM
xor xor is offline Pivot Table problem Windows 10 Pivot Table problem Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

I don't think the attached file (without underlying data) enables anyone to help.
Reply With Quote
  #3  
Old 07-23-2017, 02:31 AM
hollies hollies is offline Pivot Table problem Windows 7 64bit Pivot Table problem Office 2016
Novice
Pivot Table problem
 
Join Date: Jun 2017
Location: Nottinghamshire
Posts: 25
hollies is on a distinguished road
Default

Ok

Here is a cut down version of my table.

In this example, I am trying to show with a PT the last date that we visited a particular place. Then if a new date is arranged, the Next Date column will be added to.

The Pivot Table is exactly how I want it except for the following.

It shows (blank) in the empty date field. I don't want this but cant work out how to stop it, I just want a "blank" cell.

Whenever I add a Next Date to the list then the PT shows two "Last Dates" for the venue. See Forum Malvern and G Live, Guildford.

It appears that the PT is displaying the Last Date with the Next Date and also the Last Date with the latest "Blank" Date.

Is there a way round this to display it as I want it, just a single line with the 2 dates side by side, the next one either empty or with the next date added.

Thanks,

Rob
Attached Files
File Type: xlsx PivotTest.xlsx (20.2 KB, 10 views)
Reply With Quote
  #4  
Old 07-23-2017, 06:18 AM
xor xor is offline Pivot Table problem Windows 10 Pivot Table problem Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

I don't know how to get the pivot table react as you want but you might want to take a look at columns E:G in the attached where I have tried to solve it by means of normal formulas.

I have converted your table in Sheet1 to a range but you can convert it back to a table if you want.
Attached Files
File Type: xlsx PivotTest_2.xlsx (22.4 KB, 13 views)
Reply With Quote
  #5  
Old 07-23-2017, 07:06 AM
hollies hollies is offline Pivot Table problem Windows 7 64bit Pivot Table problem Office 2016
Novice
Pivot Table problem
 
Join Date: Jun 2017
Location: Nottinghamshire
Posts: 25
hollies is on a distinguished road
Default

Many Thanks XOR. That is exactly how I want it.

I was actually advised to covert the range to a Table. If this is not a matter of importance I will stay with a range.

Your example has allowed me to move my next date column after the last date in the PT. Something I was trying to achieve but failed.

My file proper has over 800 rows and 15 columns so I will try to replicate your formula in that. I certainly don't understand them but will try to work through it.

The only strange thing is Day (Column B) has converted to Scandinavian language, I believe.

Thanks again.

Rob
Reply With Quote
  #6  
Old 07-23-2017, 07:46 AM
xor xor is offline Pivot Table problem Windows 10 Pivot Table problem Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

@hollies

I am glad if you can use it.

Be aware that the formulas in column E and F are so-called array formulas. Array formulas are special in that they require to be entered a certain way. Where you normally just press Enter when you finish a formula, an array formula must be entered by holding down Ctrl and Shift before pressing Enter. If you do it correctly Excel will automatically put braces {} around the formula. Do not try to enter these braces manually. Excel will then think it is a text string and not a formula. When you have entered one array formula correctly you can copy it to other cells as you normally do.

I do not understand what may have happened to column B in Sheet1 (Day). I surely use Scandinavian settings but I wouldn't have expected that should influence one with US settings.

I attach a file PivotTest_3 where I have converted Sheet1 back to a Table and adjusted the formulas accordingly.

Please write back should you get problems in adapting the formulas to your actual file.
Attached Files
File Type: xlsx PivotTest_3.xlsx (23.3 KB, 10 views)
Reply With Quote
  #7  
Old 07-23-2017, 01:44 PM
hollies hollies is offline Pivot Table problem Windows 7 64bit Pivot Table problem Office 2016
Novice
Pivot Table problem
 
Join Date: Jun 2017
Location: Nottinghamshire
Posts: 25
hollies is on a distinguished road
Default

Many thanks XOR

I have successfully transferred the formulas to the proper table and it has worked a treat, almost!

The information now shows the last date of every visit we have made in the last 20 years.

How do I now filter that information so that I can select just one Country, or the UK (4) or Australia for example.

I also want to sift out only those entries in Note2 that match certain criteria, ie Yes, Poss, Good etc. I don't want the Overseas and No entries to show in this particular list, but I might next month.

I found this worked well in the pivot Table.

Is it a case of using a pivot table for some columns and then bringing in the formulas in other columns to get them right.

Thanks

Rob
Reply With Quote
  #8  
Old 07-23-2017, 04:57 PM
xor xor is offline Pivot Table problem Windows 10 Pivot Table problem Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Maybe you can use the attached.
Attached Files
File Type: xlsx PivotTest_4.xlsx (28.8 KB, 11 views)
Reply With Quote
  #9  
Old 07-24-2017, 03:34 AM
hollies hollies is offline Pivot Table problem Windows 7 64bit Pivot Table problem Office 2016
Novice
Pivot Table problem
 
Join Date: Jun 2017
Location: Nottinghamshire
Posts: 25
hollies is on a distinguished road
Default

xor

Brilliant, you have been exceptionally helpful and I appreciate it.

I am learning so much about Excel and it's hidden capabilities (to most people anyway).

Having used it for many years, I have never got passed the basic table stage and although I knew there was much more to it, because I have not really needed it until now, I have not bothered to learn the more advanced features.

Thank you once again.

Rob
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table - Problem with grouping data (need help for my example) klm Excel 1 07-17-2017 06:20 AM
Pivot Table problem Create PIVOT chart using few rows in pivot table Santhosh_84 Excel 1 08-31-2015 06:22 AM
Pivot Table problem Excel 2010 Pivot table problem Kris TenEyck Excel 4 02-01-2014 01:26 AM
Pivot Table problem Pivot table grouping problem 2 tables need different grouping differentdrummer Excel 3 12-10-2013 01:19 AM
Pivot Table problem Pivot table problem swindon Excel 5 05-25-2010 02:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft