+ Reply to Thread
Results 1 to 7 of 7

Help Simplifying a Formula

  1. #1
    Registered User
    Join Date
    10-30-2015
    Location
    Rochester, NY
    MS-Off Ver
    2010
    Posts
    10

    Help Simplifying a Formula

    I was hoping someone could help me find a way to simplify this formula:

    =IF(B5=0,"",SUMIFS($H$14:$H$456,$O$14:$O$456,B5,$S$14:$S$456,$A$1))+IF(B5=0,"",SUMIFS($H$14:$H$456,$P$14:$P$456,B5,$S$14:$S$456,$A$1))+IF(B5=0,"",SUMIFS($H$14:$H$456,$Q$14:$Q$456,B5,$S$14:$S$456,$A$1)+IF(B5=0,"",SUMIFS($H$14:$H$456,$R$14:$R$456,B5,$S$14:$S$456,$A$1)))

    Thank you!

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Help Simplifying a Formula

    What result (if any) does this return?

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

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

    Re: Help Simplifying a Formula

    First simplification, Though minor may prove helpful to future formula development.

    Instead of
    IF(B5=0,"",1stSumif))+IF(B5=0,"",2ndSumif))+etc..
    Do
    =IF(B5=0,"",1stSumif+2ndSumif+etc)


    But for this task, I'd recommend a helper column, Say S
    In S14 and filled down, put
    =OR(O14=B$5,P14=B$5,Q14=B$5,R14=B$5)

    Then use
    =IF(B5=0,"",SUMIFS($H$14:$H$456,$S$14:$S$456,TRUE,$S$14:$S$456,$A$1))

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help Simplifying a Formula

    Quote Originally Posted by mcmahobt View Post
    =SUMPRODUCT(--(($O$14:$O$456=B5)+($P$14:$P$456=B5)+($Q$14:$Q$456=B5)+($R$14:$R$456=B5)),$H$14:$H$456)
    No need for the double unary...

    =SUMPRODUCT(($O$14:$O$456=B5)+($P$14:$P$456=B5)+($Q$14:$Q$456=B5)+($R$14:$R$456=B5),$H$14:$H$456)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Help Simplifying a Formula

    Quote Originally Posted by Tony Valko View Post
    No need for the double unary...
    Tony,

    Do we know the criteria range/criterion for the SUMIFS aren't text string matches? That was my reasoning for adding the double unary, but not sure if there was something implicit within the use of SUMIFS that gave away a numerical match?

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

    Re: Help Simplifying a Formula

    The purpose of the -- is to convert True/False results into 1/0 results.
    That function is already accomplished with the + between each criteria (criteria1)+(Criteria2)

  7. #7
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Help Simplifying a Formula

    Thanks for the explanation Jonmo!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need help simplifying formula
    By ScottMuldowwney in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2014, 09:03 AM
  2. [SOLVED] Simplifying a formula
    By pezalmendra in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2013, 11:28 AM
  3. Help simplifying a formula
    By mongoose36 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2013, 02:43 PM
  4. Simplifying a formula
    By Darren88 in forum Excel General
    Replies: 9
    Last Post: 02-26-2012, 04:27 AM
  5. Simplifying a formula
    By neilpateluk in forum Excel General
    Replies: 3
    Last Post: 01-14-2009, 09:25 AM
  6. Simplifying my formula
    By lordfa9 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-09-2007, 05:33 AM
  7. Simplifying formula
    By m.cain in forum Excel General
    Replies: 1
    Last Post: 03-24-2006, 07:40 AM

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