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