Use Date Formula for Table Headers

Mrpoopyface

New Member
Joined
May 5, 2018
Messages
4
Hi everyone,

I need help resolving the following issue:

- Is there a way to force excel to read table headers as dates, and not text?

More Info:

- I converted my raw data source (a cross-tab formatted table with columns for each month) into an excel table, then converted that into a tabular form so that I have one column for all my months

- I then create a pivot table using my tabular data

- The problem is that once I convert my data into an excel table, the dates become permanant text format and I can’t get the pivot table to recognize/group dates

- i can manually change them to dates in my tabular table, but they will revert back to text upon refreshing all because it is linked to the source which outputs dates as text (explained above)

Example (dropbox link): https://www.dropbox.com/s/dq7w748lc...t work with excel tables and pivots.xlsx?dl=0
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the MrExcel board!

Suggestion:
Add a new column to the table at 2. Heading, say, ActualDate and populate it with the formula =DATEVALUE([@Month]) (You may need to format the column too.)
When you create the PT at step 3, use this new column instead of the old 'Month' column
 
Upvote 0
Hello :)

Thanks for the suggestion but wouldn’t everything clear once I refresh all? I want to manually expand the table at step 1, then refresh so step 2 and 3 capture that data
 
Upvote 0
Should have tried it first before replying! It works great. Thanks so much.

I've now run into another problem if you don't mind answering this too...if I change the name of the headers in my table (in step 1 of my example), and click Refresh All, the data in my table (in step 2) won't update because it can't find the header name originally used. (Expression Error: HEADER NAME cannot be found).

Anyway to get around this without having to re-create all my tables? I have a ton of pivot tables and pivot charts connected to them so it would be a hassle to remake.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top