Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 06-29-2023, 06:24 AM
kilroyscarnival kilroyscarnival 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: May 2019
Posts: 363
kilroyscarnival is just really nicekilroyscarnival is just really nicekilroyscarnival is just really nicekilroyscarnival is just really nice
Default

Presuming it was simply a "number stored as text" issue, I tried refreshing the cells. Didn't change those few problem ones towards the bottom.

I selected column A and changed the date format to d-mmm-yyyy. All but that handful changed displayed formats accordingly. I then added a column to the right and typed in some dates. When I (American) attempted to input the dates with the European date order (23/03/2023) it just went in as typed, didn't pick up the formatting I'd applied. When I typed it in in American order (3/23/23) it displayed as "23-Mar-2023." It leads me to believe that the items that aren't looking right are coming from a system that doesn't default to the same date format the rest of the data has. Different separators, perhaps, or an American format?

There is a formula you can use to essentially flip the date and month digits in Excel without using Power Query; it seems to work on those left-justifying figures, but makes the other ones go completely wrong. It's

Code:
=DATE(VALUE(RIGHT(C2,4)), VALUE(MID(C2,4,2)), VALUE(LEFT(C2,2)))
and you could then paste those values back. But, agreed, if you are dealing with bulk and frequent data, a PowerQuery solution may be best.
Reply With Quote
 



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 12:53 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