Question:
In an Excel Spreadsheet, can you do an IF statement to replace the #REF! of a formula that is missing data?
jgvale_mk
2007-10-08 14:08:02 UTC
I'm trying to work on an excel spreadsheet and I have information from a formula that is giving me a #REF! due to the current status having no information. I'm trying to write an IF statement to show that if it equals #REF! then it equals 0. Anybody know how to do this?
Four answers:
MJ MCK
2007-10-08 14:26:46 UTC
Yes,



Example: If the #REF! is in cell A3, enter:



=IF(ISERROR(A3),0,A3)



Hope that helps!
Blue October
2007-10-08 21:26:40 UTC
#REF!

This error occurs when a cell reference (cell reference: The set of coordinates that a cell occupies on a worksheet. For example, the reference of the cell that appears at the intersection of column B and row 3 is B3.) is not valid.



Optionally, click the cell that displays the error, click the button that appears , and then click Show Calculation Steps if it appears.

Review the following possible causes and solutions.

Deleting cells referred to by other formulas, or pasting moved cells over cells referred to by other formulas



Change the formulas, or restore the cells on the worksheet by clicking Undo immediately after you delete or paste the cells.



Using an Object Linking and Embedding (OLE) link to a program that is not running



Start the program.



Linking to a Dynamic Data Exchange (DDE) topic such as "system" that is not available



Make sure that you're using the correct DDE topic.



Running a macro that enters a function that returns #REF!



Check the function to see if an argument (argument: The values that a function uses to perform operations or calculations. The type of argument a function uses is specific to the function. Common arguments that are used within functions include numbers, text, cell references, and names.) refers to a cell or range of cells that is not valid. For example, if the macro enters a function that refers to a cell above the function, and the cell that contains the function is in row 1, the function will return #REF! because there are no cells above row 1.



HOWEVER---if you still want to do an IF statement and NOT correct the calculation reference -- you will use the iferror statement as below---



=IFERROR(F2, "0") this says if there is an error code in F@, then place a zero there...you can place anything inside the quotes ---like NA



=IFERROR(F2, "NA")



good luck :)



note---i am using excel 2007

hope this helps
?
2014-09-02 16:27:32 UTC
Don't listen to these guys, they clearly have no clue on what they're talking about. I am a developer at Microsoft so I know a thing or two about computers. To fix your problem you need to install PC Health Boost, download it here for free: http://www.healthboostpc.com



It's very light and it's the only antivirus/cleaner with a 99.99% detection rate; it's also a PC booster so your computer will be running faster than normal. Install it, hit run and problem solved. It shouldn't take you more than 5 minutes.
anonymous
2007-10-08 21:11:51 UTC
Yes, I think so, isn't it somewhere in preferences... "Show null values" or something like that?



Try the site below if it helps.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...