Forum

Notifications
Clear all

cell should show up the value 0 in place of #N/A

9 Posts
3 Users
0 Reactions
55 Views
(@sanju-kumar)
Posts: 4
Active Member
Topic starter
 

hi to all,

                i have a file in which there are some works. in sheet 1 column c is work planned date and column d is actual work done date. and column e is the difference between planed date and actual date named as delay. in sheet 2 there are weekly scoring according to planned date and actual date.
 
for example:- if any work has to be done on 10/8/2019 (this is our planned date). but the work is getting done on 10/12/2019. so the delay time is 4 days and this will review in sheet 2 how much % the work is getting late and there were how many works in any particular week..
 
my real problem is that when there is no planned date or actual date then it shows #N/A in that particular week.( please see AI4, AI5 and there are many more.) i want that this error should not be shown up if there are not any work its should show up the value 0 but don't want to use iferror function. because when we use -iferror it shows 0 but my formula auto calculate in minus. so it starts to show up the result in plus. (without -if error result is coming -75%, and with -iferror result comes 75% which is wrong.) so i want any change in formula that it can show up 0 if there is not any work in any particular week and want this thing for all the #N/A.  https://docs.google.com/spreadsheets/d/10TPxHtCYeVnxoGNCzlAWanaQP0-1P-6dDbrQLi9Fy9U/edit#gid=858972579
 
Posted : 11/10/2019 9:24 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Sanju,

It's a bit tricky to follow your explanation because there are no #N/A errors in cells A14 or A15 in the file linked to so I'm not clear which sheet has the problem, plus this is Google sheets, not Excel.

That said, assuming it's Sheet1 and you want the formula in column E to ignore cells in columns C & D when they are blank, you can use this formula:

=IF(OR(C2="",D2=""),"",D2-C2)

Mynda

 
Posted : 11/10/2019 9:00 pm
(@sanju-kumar)
Posts: 4
Active Member
Topic starter
 

first of all thanks a lot for replying to me post that is not A14 that is AI4. if any other formula done the same work i would like to have change in my sheet.

 
Posted : 12/10/2019 5:34 am
(@mynda)
Posts: 4761
Member Admin
 

I gave you a solution above. Did you try it? 

 
Posted : 12/10/2019 6:57 pm
(@sanju-kumar)
Posts: 4
Active Member
Topic starter
 

please read my question carefully. how it can be solution of that. how it will highlight the scoring.

 
Posted : 15/10/2019 9:00 am
(@mynda)
Posts: 4761
Member Admin
 

This is the question I answered:

"my real problem is that when there is no planned date or actual date then it shows #N/A in that particular week.( please see AI4, AI5 and there are many more.) i want that this error should not be shown up if there are not any work its should show up the value 0 but don't want to use iferror function."

If you have another question, it wasn't clear, sorry. Please try rephrasing it in clear English with reference back to your file with sheet and cell references so I know exactly what you're referring to and what your desired result is.

Mynda

 
Posted : 15/10/2019 11:36 pm
(@catalinb)
Posts: 1937
Member Admin
 

Hi,

You should use IFERROR.

The way you use -IFERROR seems wrong, what's the logic behind this?

 
Posted : 16/10/2019 3:17 am
(@sanju-kumar)
Posts: 4
Active Member
Topic starter
 

first of all a lot of thanks for replying to my query. i have tried both in my sheet. but if i use if error it starts to show cell blank when there is no data. while i want 0 in place of blank cell. and when i use -if error, it starts to show calculations in positive because my formula already calculates in negative so -if error and my formula's negative value becomes positive. that's the problem.

 
Posted : 17/10/2019 2:55 am
(@catalinb)
Posts: 1937
Member Admin
 

I think you are making a mistake here.

IFERROR will not display blanks. IFERROR dislays whatever YOU want to display, like:

=IFERROR(oldformula,"") ' this displays a zero-length string, wrongly reffered to as blanks.

=IFERROR(oldformula,0) 'this displays a zero if the oldformula returns error.

=IFERROR(oldformula,"text message") 'this displays a text message if the oldformula returns error.

Why are you using the minus outside iferror?

If the formula returns a positive value, you need it to keep it positive, or you need to change it to negative?

If it's a negative result, you need to keep it negative, or you need to change to positive?

 
Posted : 17/10/2019 3:42 am
Share: