+ Reply to Thread
Results 1 to 2 of 2

Error: A function in this formula causes the result to change ...

  1. #1
    Registered User
    Join Date
    02-12-2011
    Location
    Brisbane
    MS-Off Ver
    Excel 2003
    Posts
    3

    Error: A function in this formula causes the result to change ...

    I am allowing students to choose three students with whom they wish to work. So Student A might choose Sudents B, C and D. I need to determine if any or all of B, C and D also chose A so that I can pair them up. There are about 60 students in the mix. I am using the following formulae (thanks to Nimrod) to test each student's 3 choices:

    =MATCH(A1,INDIRECT(MATCH(B1,A:A,0) & ":" & MATCH(B1,A:A,0)),0) - 1
    =MATCH(A1,INDIRECT(MATCH(C1,A:A,0) & ":" & MATCH(C1,A:A,0)),0) - 1
    =MATCH(A1,INDIRECT(MATCH(D1,A:A,0) & ":" & MATCH(D1,A:A,0)),0) - 1

    In general it appears to work but for some cells I get unexpected results.

    I used EVALUATE FORMULA to establish what was happening and found that #N/A-1 often returns the value '1' or "2" or "3". I get the message: 'A function in this formula causes the result to change each time the spreadsheet is calculated. The final evaluation step will match the result in the cell, but interim steps may not.'

    Any ideas as to what is happening? Ta!
    Sally27

    PS It also says that I have a circular argument, but it's seems to be because B picks D who picks G who picks B, and that is as it should be.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Error: A function in this formula causes the result to change ...

    The INDIRECT() function is the one that calculates every time the sheet calculates. It is referred to as a volatile function. See this link for more on that:

    http://www.decisionmodels.com/calcsecretsi.htm


    When I was in school (a long time ago) my teachers would say to us "form groups of 4" and it got done. No spreadsheet needed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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