+ Reply to Thread
Results 1 to 9 of 9

Summary sheet calc results change if rows added/deleted in detail spreadsheet

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Summary sheet calc results change if rows added/deleted in detail spreadsheet

    [Excel 2003] I have 2 spreadsheets: one to summarize data from a 2nd detail spreadsheet. I'm analyzing work order information for a service operation.

    I'm using dynamic name ranges, as follows, for the detail:

    WO_Num =OFFSET('WO Tracking Log'!$A6,0,0,COUNT('WO Tracking Log'!$A:$A),1)

    Other detail data is defined as these examples show:

    GM_X =OFFSET(WO_Num,0,8)
    OpenDate =OFFSET(WO_Num,0,1)

    All detail data begins in Row 6 in the detail spreadsheet.

    In the Summary spreadsheet, it appears to make a difference where my calcs are located in order for my COUNTIF's to work correctly. As long as I keep my summary calc (to total the number of work orders in the detail) in Row 2 of the Summary, it works fine...but if EITHER I move my calc down a row OR if my detail drops down a row because a row was added above (where I have just header info), my summary totals change?!?! I don't understand.

    Here are two examples of the calcs I'm using in the summary:

    =COUNTIF(WO_Num,">0")
    =COUNTIF(GM_X,"X")

    Can someone tell me what is going on? What I'm doing wrong?
    Last edited by cedarhill; 02-27-2009 at 06:53 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Summary sheet calc results change if rows added/deleted in detail spreadsheet

    You should use an Absolute reference in your named range, see:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Summary sheet calc results change if rows added/deleted in detail spreadsheet

    My sincere thanks...that worked. I'll go mark this as "solved".

    I do have one question though. You helped me last week with another calc using a dynamic range but I didn't have to use an Absolute reference in that one. Can you help me understand when I do need to be "absolute"...or not?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Summary sheet calc results change if rows added/deleted in detail spreadsheet

    Could you post the RefersTo formula in question ?

  5. #5
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Summary sheet calc results change if rows added/deleted in detail spreadsheet

    If you mean the one you helped me with last week, it is the one I posted on Feb. 20 "SUMPRODUCT & Dynamic Range Problem". I set up dynamic ranges as follows:

    =OFFSET($B2,0,0,COUNT($B:$B),1)
    =OFFSET(Technician,0,2)

    My calc was:

    =SUMPRODUCT(--(Technician=A2),--(InDate=0))

    So in the case of Technician I didn't use an absolute...right?

    I just don't understand why?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Summary sheet calc results change if rows added/deleted in detail spreadsheet

    The B2 should also be an absolute (I suspect) no doubt an oversight on my part... it's rare that you wouldn't use absolutes in this context (for the reasons you're now aware of).

  7. #7
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Summary sheet calc results change if rows added/deleted in detail spreadsheet

    Thanks, I'll fix it in my name set up.

    Can you tell me an occasion when I wouldn't want to use an absolute?

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Summary sheet calc results change if rows added/deleted in detail spreadsheet

    Regards Named Ranges ... only when you want the range to be relative to your current position... nothing springs to mind immediately ... I don't really use named ranges myself all that much so someone else may be able to provide some examples where a relative range would prove useful (and practical over using a native formula with range referenced directly)

  9. #9
    Registered User
    Join Date
    02-20-2009
    Location
    Mineral, VA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Summary sheet calc results change if rows added/deleted in detail spreadsheet

    Thanks...you got me out of a jam and that means I will have a much better day. I'll let you get on to other things now...well, at least until a get into a new jam.

+ 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