+ Reply to Thread
Results 1 to 4 of 4

Simplify the formula function of SUMIF

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Simplify the formula function of SUMIF

    Hi,

    my function is try to sum column (AC:AH) but it has to meet certain criteria then I used SUMIFS. This is my formula and hope if you know other formula can simplify this formula.

    =SUMIF(INDIRECT("'"&BAT!$C$4&"'!$C$14:$C$10000"),BAT!$E960,INDIRECT("'"&BAT!$C$4&"'!$AC$14:$AC$10000")) + SUMIF(INDIRECT("'"&BAT!$C$4&"'!$C$14:$C$10000"),BAT!$E960,INDIRECT("'"&BAT!$C$4&"'!$AD$14:$AD$10000")) + SUMIF(INDIRECT("'"&BAT!$C$4&"'!$C$14:$C$10000"),BAT!$E960,INDIRECT("'"&BAT!$C$4&"'!$AE$14:$AE$10000"))+ SUMIF(INDIRECT("'"&BAT!$C$4&"'!$C$14:$C$10000"),BAT!$E960,INDIRECT("'"&BAT!$C$4&"'!$AF$14:$AF$10000"))+ SUMIF(INDIRECT("'"&BAT!$C$4&"'!$C$14:$C$10000"),BAT!$E960,INDIRECT("'"&BAT!$C$4&"'!$AG$14:$AG$10000"))+ SUMIF(INDIRECT("'"&BAT!$C$4&"'!$C$14:$C$10000"),BAT!$E960,INDIRECT("'"&BAT!$C$4&"'!$AH$14:$AH$10000"))

    Thank you

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Simplify the formula function of SUMIF

    Try this array formula entered with CTRL + SHIFT + ENTER

    =SUM(IF(INDIRECT("'"&BAT!$C$4&"'!$C$14:$C$10000")=BAT!$E960,INDIRECT("'"&BAT!$C$4&"'!$AC$14:$AH$10000")))

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Simplify the formula function of SUMIF

    Thank you very much

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Simplify the formula function of SUMIF

    You're welcome.

+ 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