Changing Value Prefilled Cell Only if Matching Value
The following rows are moved by automation to this sheet with without the formulas just to display the values. What is the best way to have any cell under "Duration" column that if it matches "#INVALID VALUE" to Display "No Downtime/Delayed" without clearing the rest of the column?
Best Answer
-
My apologies. Missed a closing parenthesis.
=IFERROR(IF(Difference@row < 0, ROUNDDOWN(Difference@row / 60, 0) + " hrs " + (60 - MOD(Difference@row, 60)), ROUNDDOWN(Difference@row / 60, 0) + " hrs " + MOD(Difference@row, 60) + " mins"), "No Downtime/Delayed")
Answers
-
I would add an IFERROR function to the sheet it's coming over from that will display that text if it's getting an error. If that's not possible, then you'll need to add a helper column which has =IF(CONTAINS( and have it look for the value of "#INVALID VALUE" and replace it with what you'd like it to display. Then hide the duration column that's copied over from the original sheet.
-
where would be the best place to insert IFERROR ?
-
-
I wrapped it like this:
=IFERROR(Difference@row < 0, ROUNDDOWN(Difference@row / 60, 0) + " hrs " + (60 - MOD(Difference@row, 60)), ROUNDDOWN(Difference@row / 60, 0) + " hrs " + MOD(Difference@row, 60), "No Downtime/Delayed") + " mins"
And now I'm getting #INCORRECT ARGUMENT SET
Do I need to drop the additonal " mins" at the end, I added that to give me hrs/mins for duration. I'm guessing it would of given me "No Downtime/Delayed mins" if there was an error?
I'm trying to get duration to display XX hrs XX mins and if there's an error, to display "No Downtime/Delayed"
-
That last bit with the "Mins" should actually come before the output of the IFERROR like so:
=IFERROR(Difference@row < 0, ROUNDDOWN(Difference@row / 60, 0) + " hrs " + (60 - MOD(Difference@row, 60)), ROUNDDOWN(Difference@row / 60, 0) + " hrs " + MOD(Difference@row, 60) + " mins", "No Downtime/Delayed")
-
I made the adjustment but it keeps giving me "Incorrect Argument Set", hmm.
-
You forgot to include that first IF statement.
=IFERROR(IF(Difference@row..................
-
It's still giving me an "INCORRECT ARGUMENT SET" with the following:
=IFERROR(IF(Difference@row < 0, ROUNDDOWN(Difference@row / 60, 0) + " hrs " + (60 - MOD(Difference@row, 60)), ROUNDDOWN(Difference@row / 60, 0) + " hrs " + MOD(Difference@row, 60) + " mins", "Delayed, No Downtime"))
Am I missing an additional argument?
-
My apologies. Missed a closing parenthesis.
=IFERROR(IF(Difference@row < 0, ROUNDDOWN(Difference@row / 60, 0) + " hrs " + (60 - MOD(Difference@row, 60)), ROUNDDOWN(Difference@row / 60, 0) + " hrs " + MOD(Difference@row, 60) + " mins"), "No Downtime/Delayed")
-
Thank you!! It's working properly now 😄
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!