Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 06-28-2023, 03:42 AM
p45cal's Avatar
p45cal p45cal is offline "Cannot Group That Selection" issue with dates in Excel Pivot Table Windows 10 "Cannot Group That Selection" issue with dates in Excel Pivot Table Office 2021
Expert
 
Join Date: Apr 2014
Posts: 962
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Quote:
Originally Posted by tomohawk View Post
Can you explain to me how you were able to visually separate the two, so that I can correct.

Remove any left/right justification from that column. Numbers will be ranged right, text ranged left.


Quote:
Originally Posted by tomohawk View Post
Also, this is downloaded data from my bank. It is downloaded as a .csv and I do some editing and formatting before pasting into a master spreadsheet (.xlsx)
Unfortunately, when you open a .csv file with dates in Excel (the same applies to pasting data), Excel tries to be helpful and converts what it thinks are dates into proper Excel dates. There are problems with this; it makes assumptions about the order dmy/mdy and those assumptions can often be wrong - it depends on your locale and the locale that the csv was created in. Some dates, eg. 2/1/2023 could be interpreted 2nd Jan, or 1st Feb, one of them is wrong. If the csv file has been created in a dmy system and is loaded into a dmy Excel there should be no problem. I believe the csv file was created in a dmy format and is being loaded into a dmy system (Dublin?) so it's a bit surprising that some are failing to be converted to dates properly. In this case I'd look more closely at the csv file using other means (Notepad) to see what could be going wrong (are there some extra spaces lurking?).


Use Power Query (Get & Transform Data) to import the data, it doesn't try to interpret the dates and you'll be able to do the various transformations including conversion to proper dates



Quote:
Originally Posted by tomohawk View Post
This is done in the .csv before pasting to the master spreadsheet.
How do you do this? In what application?


If you want, send me in a Private Message here (I suspect you don't want the data in the public domain) the actual untouched csv and I'll write (actually, no writing, just clicking, to create) a bit of Power Query code to handle the import of future csvs.
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003: VBA "Function" causes "#VALUE!" errors after running "insert/delete row" custom macro Matt C Excel Programming 2 01-08-2022 06:03 AM
"Cannot Group That Selection" issue with dates in Excel Pivot Table Irritating formatting issue in Table of Contents - page number "dots" disappear Eriks Word 9 04-19-2019 06:18 PM
"Cannot Group That Selection" issue with dates in Excel Pivot Table Pivot table dates issue salse Excel 1 06-08-2016 12:23 PM
Excel Macro to "Select All" in Pivot Table Field galkej Excel 0 02-03-2014 11:59 AM
Excel pivot table into an MS Word Doc "office 2007" wmarsh3561 Excel 1 01-09-2010 08:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:31 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