+ Reply to Thread
Results 1 to 12 of 12

Formula gives 'wrong' answer.

  1. #1
    Registered User
    Join Date
    04-27-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    25

    Formula gives 'wrong' answer.

    G'day,

    In Column GV & Column GW from GV 60 & GW 60 down the answer looks wrong.

    It looks like excel is saying that 104 is larger than 106 etc.

    I thought It might have to do with a Circular Reference but there isn't one showing.

    I'm attaching the excel spreadsheet in a zip file.

    Thanks in advance for any help you can give me.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Formula gives 'wrong' answer.

    I show Circular Reference Warning starting EJ 57 though GR 57


    Shelton A.
    If Helpful, Add Reputaion!

  3. #3
    Registered User
    Join Date
    04-27-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Formula gives 'wrong' answer.

    G'day Playaller,

    Thank you for your prompt response.

    Unfortunately on the computer I'm using I can't see any Circular Reference listed.

    Please can you tell me how to see it or is it quicker for you to fix it?

    All help greatly appreciated.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula gives 'wrong' answer.

    Quote Originally Posted by horne View Post
    Unfortunately on the computer I'm using I can't see any Circular Reference listed.
    Look at the bottom left of the excel window, just below the Main Tab, it will show the cell reference. Note however, that just because it saiys the circ ref error is in GO57, the actual error may lay somewhere else in that row - and where ever it is, it looks like it is affecting the rows down to (at least) row 79
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    04-27-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Formula gives 'wrong' answer.

    G'day FDibbins,

    I have taken a screen shot of my page as I see it.

    I can't see a Circular Reference warning anywhere.

    I realize I'm certainly not very good with excel (or forums),
    I appreciate the help and patience I'm being given.
    Attached Images Attached Images

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula gives 'wrong' answer.

    hmm ok well are you sure you uploaded the same file? I agree that the pic you provided does not show any error

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Formula gives 'wrong' answer.

    Look at the lower left corner of the status bar. In the same place where FDibbins indicated you should find a circular reference warning, the status bar says "calculate". Two possible reasons for this: 1) you have calculate set to manual, and this is Excel's way of telling you that it is waiting for you to tell it when to calculate (so any "results" shown on the spreadsheet may not be correct because it waiting to execute a calculate event) or 2) your spreadsheet has a circular reference and you have iteration enabled.

    Since I routinely have iteration enabled for my spreadsheets, I saw something similar when I opened your spreadsheet. I don't know how many iterations you have the maximum set to, but when your spreadsheet calculated for me, I could tell that it was going through many iterations, and, though the iterations were fast, it kind of appeared that there was an endless loop to the calculations. The error appears to be related to the failure of the "circular reference" to converge.

    At this point, my hypothesis is that you do indeed have a circular reference and you have iteration enabled. Further debugging will require picking the spreadsheet apart to figure out why there is a circular reference and figure out if it should or should not be there.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula gives 'wrong' answer.

    MrShorty, thanks for the input and assist. I should have picked up that it said "calc"

  9. #9
    Registered User
    Join Date
    04-27-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Formula gives 'wrong' answer.

    G'day MrShorty,

    Knowledge is Power!

    Thank You very much,
    I googled it up & YES I've stopped Iterations and now I have a Circular Reference.

    Ok, so now I will try "picking the spreadsheet apart to figure out why there is a circular reference and figure out if it should or should not be there."

    As the data is wrong, wouldn't that mean that the Circular Reference shouldn't be there?

    Thank You again, is it hard to work out?

    Thank You FDibbins for Your continued input.

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Formula gives 'wrong' answer.

    the circular reference is only decided by the references and logic in the formulas, not the data/formula result.

    Debugging this sort of thing can be difficult (especially in a large spreadsheet like this with a lot of formulas). I'm not aware of any "quick fix" debugging solution for these kind of problems.

    One quick observation: with iteration disabled, Excel provides precedent/dependent arrows (see formula auditing on the formulas group). These arrows suggest that the circular reference is in the calculation from column 140 to column 200 (whatever those columns are in A1 notation) and only in rows 57+. I don't know what is different about the calculations performed in row 55 and row 57, but something changes there that seems to create the circular reference. That might be a place to start -- compare row 55 and 57 and see what is different in those calculations. Tedious because it is 60 out of 200 columns, and each formula has multiple terms and parts and some even have multiple levels of nesting. It does not look like it will be easy to debug to me.

    Sometimes, I find it easier to delete the whole offending section, think through my logic, and start over.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula gives 'wrong' answer.

    An approach that I sometimes use is to start deleting cells/columns and see when the error goes away. you can always use "undo" to get them back

  12. #12
    Registered User
    Join Date
    04-27-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Formula gives 'wrong' answer.

    G'day MrShorty & FDibbins,

    It looks like that this Circular Reference has been 'removed'.

    MrShorty, just letting You know the difference between the first 56 Rows and subsequent rows is the first 56 are somewhat using text instead of all formulas.

    I took FDibbins advise and started deleting a cell at a time and recalculating then undoing if this didn't 'work' until deleting GR57 moved the CR down a row.
    Then I had to replace the formulas between Columns EK & FS that contained the column reference GR & put in HD instead.

    This seems to have worked.

    I wrote this last post at 3:30am, sorry about spelling & grammar mistakes.

    Thank You all for Your help, I'm envious of Your excel knowledge.

    Kind Regards.
    For Forum 5.zip
    Last edited by horne; 05-03-2014 at 06:32 PM. Reason: woke up & reread post.

+ 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. Why would this formula produce this wrong answer
    By Miskondukt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2014, 03:11 PM
  2. Formula Dragging, Wrong Answer
    By pbateman56 in forum Excel General
    Replies: 1
    Last Post: 04-16-2012, 04:56 PM
  3. [SOLVED] Fill down produces correct formula but wrong answer
    By Jim at SDSU in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2006, 03:10 PM
  4. Formula correct, answer wrong
    By TJAC in forum Excel General
    Replies: 2
    Last Post: 01-03-2006, 02:20 PM
  5. Wrong answer after using the payment formula in excel
    By punkyh in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 04-28-2005, 03:06 PM

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