Excel Time column cannot be formatted

Posted on 2011-03-18
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

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

Assisted Solution

broomee9 earned 100 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

738 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