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.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!