+ Reply to Thread
Results 1 to 6 of 6

Circular reference error

  1. #1
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Circular reference error

    Hi guys and gals:

    This is part of a much larger formula but it's the only part I can't get to work. Can someone tell me what's wrong with it and why it's circular.

    IF(RIGHT(B22,5)="Total",SUMPRODUCT(--(Right(C9:C77,5)="Total"),(F9:F77),"Data Not Available")))

    Here's the entire formula:

    =IF(COUNTIF('Budget Data'!$M$2:$M$53,C22&D22),VLOOKUP(C22&D22,'Budget Data'!$M$2:$P$53,4,0),IF(COUNTIF('Budget Data'!$R$2:$S$13,C22),VLOOKUP(C22,'Budget Data'!$R$2:$S$13,2,0),IF(RIGHT(B22,5)="Total",SUMPRODUCT(--(Right(C9:C77,5)="Total"),(F9:F77),"Data Not Available")))

    Thanks!

    Cjax
    Last edited by Cjax; 03-24-2011 at 10:10 PM.

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

    Re: Circular reference error

    You's have to tell us what cell the formula is in.

  3. #3
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Circular reference error

    Ah ha! k - the formula is currently in cell F22 but it will run down through F77.

    Thanks!

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

    Re: Circular reference error

    You are referring to it in the SUMPRODUCT() portion of your formula.

    A formula can not refer to the cell that the formula occupies.

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

    Re: Circular reference error

    BTW - The SUMPRODUCT() formula is also missing its closing bracket.

    It should be:

    =IF(RIGHT(B22,5)="Total",SUMPRODUCT(--(RIGHT(C9:C77,5)="Total"),(F9:F77)),"Data Not Available")

  6. #6
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Circular reference error

    Thanks Cutter - i figured out how to fix the circular reference problem using the same formula. I just stopped summing column F one row above where the formula is active. I locked the F9 in with the $ symbol but left the bottom part of the range open.

    Don't know if my explanation makes sense but it worked.

    Thanks!

+ 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