Date Format to HH:MM

SmittyT

New Member
Joined
Jan 20, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am running a query on multiple spreadsheets within a folder to display a consolidated set of data.
The problem I have run into and unable to get through completely revolves around column labeled "Insp View" in image below.
Values in this column from spreadsheets match format of top 5 rows, HH:MM.
However, I need to leave the cells with value of 00:00 alone and do not want them adjusted to 12:00.

Example: 12/31/1899 6:00:00 AM = 06:00 BUT also want 00:00 = 00:00

Any help would be greatly appreciated! I have spent a lot of time trying to muddle through this. Haha.

I would also like to add, I am planning on new spreadsheets being added to folder and thus to query from time-to-time which is why I have gone this direction. The format of new spreadsheets added will match the current spreadsheets exactly.

Thank You!

1643562452380.png
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,223,677
Messages
6,173,777
Members
452,534
Latest member
autodiscreet

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