Excel Time column cannot be formatted

Posted on 2011-03-18
Medium Priority
Last Modified: 2012-08-14
I have an excel spreadsheet with a time column that will not format. I want to combine the date and time columns. But the formula produces #VALUE!. I tried just formatting the time and it does not do it. Also, once you hide rows at the top, how do you unhide them?
Question by:qbjgqbjg
  • 3
  • 2

Author Comment

ID: 35165994
I am attaching the spreadsheet. test.xlsx. I thought maybe it was because the time has am pm in lowercase, so I replaced it with uppercase, but it still did not work.
LVL 24

Expert Comment

ID: 35166007
Can you post your workbook?

>>Also, once you hide rows at the top, how do you unhide them?
Select all the cells (Ctrl + A) and click Format --> Row --> Unhide
LVL 50

Accepted Solution

barry houdini earned 1600 total points
ID: 35166266
You need a space between the time and the "am" or "pm" for it to be recognised as a valid time, you can use this formula to combine date and time while also adding the space, i.e. in H6 I used

=B6+REPLACE(C6,LEN(C6)-1,0," ")

copied down

That's now a valid date/time that you can format any way you want, see attached

regards, barry
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!


Author Comment

ID: 35166314
Thanks, that worked. What about unhiding columns at the top of the page?
LVL 24

Assisted Solution

Tracy earned 400 total points
ID: 35166333
>>Thanks, that worked. What about unhiding columns at the top of the page?

See this comment http:35166007

Author Closing Comment

ID: 35166501
Thanks. That resolved the issues. I really appreciate the help.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question