If Blank return no value
How would I eliminate the #INVALID VALUE entry when the Start Time is BLANK? Thanks for your help! Here is the formula below. It converts time to Military time.
=VALUE((VALUE(LEFT([Start Time]@row, FIND(":", [Start Time]@row) - 1)) - IF(VALUE(LEFT([Start Time]@row, FIND(":", [Start Time]@row) - 1)) = 12, 12, 0) + IF(RIGHT([Start Time]@row, 2) = "pm", 12, 0)) + MID([Start Time]@row, FIND(":", [Start Time]@row) + 1, 2))
Thank you.
Greg
Best Answer
-
iferror(formula,"")
=iferror(VALUE((VALUE(LEFT([Start Time]@row, FIND(":", [Start Time]@row) - 1)) - IF(VALUE(LEFT([Start Time]@row, FIND(":", [Start Time]@row) - 1)) = 12, 12, 0) + IF(RIGHT([Start Time]@row, 2) = "pm", 12, 0)) + MID([Start Time]@row, FIND(":", [Start Time]@row) + 1, 2)),"")
Answers
-
iferror(formula,"")
=iferror(VALUE((VALUE(LEFT([Start Time]@row, FIND(":", [Start Time]@row) - 1)) - IF(VALUE(LEFT([Start Time]@row, FIND(":", [Start Time]@row) - 1)) = 12, 12, 0) + IF(RIGHT([Start Time]@row, 2) = "pm", 12, 0)) + MID([Start Time]@row, FIND(":", [Start Time]@row) + 1, 2)),"")
-
Thank you!!! :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!