+ Reply to Thread
Results 1 to 9 of 9

Using Indirect with Sumifs

Hybrid View

JohnGault82 Using Indirect with Sumifs 02-07-2011, 07:36 PM
shg Re: Indirect 02-07-2011, 07:42 PM
JohnGault82 Re: Indirect 02-07-2011, 07:49 PM
shg Re: Indirect 02-07-2011, 07:53 PM
JohnGault82 Re: Indirect 02-07-2011, 07:58 PM
shg Re: Indirect 02-07-2011, 08:09 PM
JohnGault82 Re: Indirect 02-07-2011, 08:10 PM
shg Re: Indirect 02-07-2011, 08:17 PM
DonkeyOte Re: Indirect 02-08-2011, 04:05 AM
  1. #1
    Registered User
    Join Date
    01-31-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    12

    Angry Using Indirect with Sumifs

    I'm having trouble with the Indirect() function. I put the following formula:

    =SUMIFS(INDIRECT(D6),Evaluation_Metric,"="&B$9,Calculation,"="&C$9)

    D6 = Week_1_Jan-11
    B9 = LOSS_RESERVE
    C9 = ITD

    So I'm trying to ask, in the 1st Week in January, what is the total Loss Reserve for the Incurred To Date calculation?

    The formula returns "#REF!". Why is it returning "#REF!"? Is there a rule that the text string it is evaluating cannot have a number in it? I'm coming to the end of very long spreadsheet building process and this not working could potentially cause a huge headache.

    When I pull up the "Functions Arguments" window (click fx next to formula box). If I have INDIRECT(D6) in the "Sum_Range", the evaluation to the left says "Volatile". If I type, Week_1_Jan-11 it gives me a blank. If I actually go and select the desired cells, it automatically inputs a variation of the Defined Names (Week_1_Jan_11) but doesn't return any results.

    Can someone please help?
    Last edited by DonkeyOte; 02-08-2011 at 04:10 AM. Reason: modified title slightly

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Indirect

    Is Week_1_Jan-11 supposed to be a named range? The hyphen character is not valid.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-31-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Indirect

    Is the underscore "_" valid?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Indirect

    Yup.

    A name has to start with a letter or underscore, and the balance can be a combinations of letters, numbers, and underscores.

  5. #5
    Registered User
    Join Date
    01-31-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Indirect

    Do I still need to use Indirect to make it work in the equation above?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Indirect

    No, you can use it directly in the formula:

    =SUMIFS(Week_1_Jan_11, Evaluation_Metric, B$9, Calculation, C$9)

  7. #7
    Registered User
    Join Date
    01-31-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Indirect

    I just changed all the Defined Names so that the hyphen has been removed. And I used the indirect and it is coming up with #value!.

    This is a Defined Name range on a Defined Name range. Is that possible? Can you have cells that are calculated using a Defined Name range and then put a Defined Name range on those calculation and call them from another formula?

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Indirect

    You've lost me.

    You cannot use Indirect with a dynamic range, if that's what you mean.

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

    Re: Indirect

    Quote Originally Posted by JohnGault82
    I just changed all the Defined Names so that the hyphen has been removed. And I used the indirect and it is coming up with #value!.
    If you received #VALUE! rather than #REF! with:

    =SUMIFS(INDIRECT(D6), Evaluation_Metric, B$9, Calculation, C$9)
    then the implication is that the above ranges are not of the same dimension rather than defined name as set in D6 being dynamic, to test:

    =ROWS(INDIRECT(D6))
    =ROWS(Evaluation_Metric)
    =ROWS(Calculation)
    should all be the same - if they are repeat the above but with COLUMNS

    It might be worth posting back with the RefersTo constructs of your Defined Names and/or better yet with a sample file - I suspect you can avoid the INDIRECT requirement altogether.
    Last edited by DonkeyOte; 02-08-2011 at 04:10 AM. Reason: typo in narrative

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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