Can i use IFERROR with INT for time?

ssmith04

New Member
Joined
Sep 30, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
i have a date and time column (formatted as so) for data input. this has then been split to two columns, date, and time, using the INT function. however, its entering time as 00/01/1900, and the date as 00:00:00 even when there is no data in the input cell. When i try to use the IFERROR function in front { =IFERROR(INT(Cell Ref) } it still adds the standard base date and time as above. i want it to remain blank. im clearly missing something with a gap in my knowledge.

Any help please?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
INT returns 0, not an error, for a blank cell, which is why IFERROR won't help. Just test for blanks - e.g.:

Excel Formula:
=IF(cellref="","",int(cellref))
 
Upvote 0

Forum statistics

Threads
1,225,738
Messages
6,186,728
Members
453,368
Latest member
positivemind

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