+ Reply to Thread
Results 1 to 7 of 7

Why the formula with #REF! still produces 0 value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Why the formula with #REF! still produces 0 value

    Hello Sir,

    I have a spreadsheet with a simple formula, for example, =SUM(1+((B2/C2)-1))*B1.

    Now if I delete C2, then the formula became: =SUM(1+((B2/#REF!)-1))*B1

    For some reason, the formula still produces a value as 0. Don't understand why because the automatic calculation is already on.

    If this is tricky, is there a way to use a formula to detect if a formula contains specical characters such as #REF?

    Thanks a lot in advance.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Why the formula with #REF! still produces 0 value

    Just tried to reproduce your formula and entered stuff in the reference cells, got a value, then when I delete what is in your C cell reference I just get #DIV/0! Not sure why you are getting the ref error. You deleting the whole column?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Re: Why the formula with #REF! still produces 0 value

    Quote Originally Posted by Sambo kid View Post
    Just tried to reproduce your formula and entered stuff in the reference cells, got a value, then when I delete what is in your C cell reference I just get #DIV/0! Not sure why you are getting the ref error. You deleting the whole column?
    No, I just deleted the cell only

    Is there a way to use a formula to check if that cell's FORMULA contains any illegal error text, e.g. #REF!?

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Why the formula with #REF! still produces 0 value

    Usually a #REF! text shows as the cell, for example right now I have a bunch of cells that contain that error and it is a result of the reference cell either being moved or deleted. For instance, this is what the corresponding formula says... =C18-(C14+'Pt Days'!#REF!) and the #REF! is the result that the reference cell was deleted, so i'm working on correcting them all now.
    Sometimes uploading sample spreadsheets help other see the issue.

    EDIT: when I say the cell was deleted, I mean the column containing that cell was deleted.
    Last edited by Sam Capricci; 01-16-2014 at 02:41 PM.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Why the formula with #REF! still produces 0 value

    Do you have any circular references?

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Re: Why the formula with #REF! still produces 0 value

    Is there a way to use a formula to check if another formula contains the sign #?

    It will be very helpful.

  7. #7
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Re: Why the formula with #REF! still produces 0 value

    Hi all,

    I've found a macro to check if a formula contains any text:

    Function GetFormula(cell_ref As Range) As String
    If cell_ref.HasFormula Then
    GetFormula = cell_ref.Formula
    Else
    GetFormula = ""
    End If
    End Function

    This well resolves my problem. Thank you all

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. If contains formula with index match formula produces errors
    By Nicole Matthews in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-31-2013, 07:39 PM
  2. Formula produces Error
    By treeleaf20 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-10-2009, 05:34 PM
  3. VLOOKUP/formula produces #N/A
    By ge0rge in forum Excel General
    Replies: 7
    Last Post: 03-26-2009, 10:17 AM
  4. Result of Formula produces Picture?
    By sharkman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2006, 04:50 PM
  5. FORMULA PRODUCES WRONG RESULT
    By Wildebeest222 in forum Excel General
    Replies: 2
    Last Post: 10-11-2005, 05:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1