Date Formatting issues when using a table

reenieh

New Member
Joined
Oct 17, 2011
Messages
7
I have created a worksheet that is linked to a sharepoint log. The "created date" column is formated as such: 11/7/2011 4:19:07 PM. I only need the date (for a pivot table), so i created a column at the end of the table and added this formula: =LEFT(Table_owssvr_1[[#This Row],[Created]],5). This returned the value of 40854 (11/7/2011). However, no matter what I try, it will not convert this number into a date format, "format cells" does not work as long as this value is in the table. If i try to format the number outside the table, it will format to a date. Any ideas?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I'd probably either change it to a direct cell reference which you can change the format:
=LEFT(A2,5)+0

or wrap a text function around it:
=TEXT(LEFT(Table_owssvr_1[[#This Row],[Created]],5),"mm/dd/yy")
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,146
Members
449,098
Latest member
Doanvanhieu

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