+ Reply to Thread
Results 1 to 3 of 3

Thread: Dependant Sum Range?

  1. #1
    Registered User
    Join Date
    06-29-2011
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    2

    Dependant Sum Range?

    This is my first post on this site, hopefully my format is okay.

    I'm stuck on this formula:

    =IF(E2="Y","100%",D2/SUMIF($E$2:$E$5, "",$D$2:$D$5 ))

    I'm trying to find the percentage of 2 values (D2/sum_range) but the sum_range ($D$2:$D$5) is dependant on two conditions.

    1. The variable in Col A is the same as the value in A2.
    2. The variable in Col C is the same as the value in C2.

    I have attached an example of what I am trying to do that explains in further detail.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007 and 2010
    Posts
    1,207

    Re: Dependant Sum Range?

    Welcome to the forum. Try this formula in F2:

    =IF(E2="Y",100%, D2/SUMIFS($D$2:$D$13, $A$2:$A$13,A2,$C$2:$C$13,C2,$E$2:$E$13,""))
    Hope that helps,

    Colin

    RAD Excel Blog

    Other tutorials:
    Array Formulas | Deleting Rows with VBA

  3. #3
    Registered User
    Join Date
    06-29-2011
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Dependant Sum Range?

    That worked perfect! I forgot about the new SUMIFS function, thanks a million Colin!

+ 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.2.0