+ Reply to Thread
Results 1 to 3 of 3

Can someone please breakdown the formula below into bite-sized chunks or explain it to me

  1. #1
    Registered User
    Join Date
    12-01-2018
    Location
    Lewis Center Ohio
    MS-Off Ver
    MS Office 2013
    Posts
    1

    Can someone please breakdown the formula below into bite-sized chunks or explain it to me

    =IF(ISERROR(SUMIFS(INDIRECT("'"&AV$4&"'!"&"$A$49:$EO$49"),INDIRECT("'"&AV$4&"'!"&"$A$4:$EO$4"),AV$5,INDIRECT("'"&AV$4&"'!"&"$A$5:$EO$5"),$A53)),0,SUMIFS(INDIRECT("'"&AV$4&"'!"&"$A$49:$EO$49"),INDIRECT("'"&AV$4&"'!"&"$A$4:$EO$4"),AV$5,INDIRECT("'"&AV$4&"'!"&"$A$5:$EO$5"),$A53))+IF(ISERROR(SUMIF(INDIRECT("'"&AV$6&" "&$A$48&"'!"&"H:H"),$A53,(INDIRECT("'"&AV$6&" "&$A$48&"'!"&"J:J")))),0,SUMIF(INDIRECT("'"&AV$6&" "&$A$48&"'!"&"H:H"),$A53,(INDIRECT("'"&AV$6&" "&$A$48&"'!"&"J:J"))))+IF(ISERROR(SUMIFS(INDIRECT("'"&AV$4&"'!"&"$A$48:$EO$48"),INDIRECT("'"&AV$4&"'!"&"$A$4:$EO$4"),AV$5,INDIRECT("'"&AV$4&"'!"&"$A$5:$EO$5"),$A53)),0,SUMIFS(INDIRECT("'"&AV$4&"'!"&"$A$48:$EO$48"),INDIRECT("'"&AV$4&"'!"&"$A$4:$EO$4"),AV$5,INDIRECT("'"&AV$4&"'!"&"$A$5:$EO$5"),$A53))+IF(ISERROR(SUMIF('Manual'!$A$6:$A$81,$A53,INDEX('Manual'!$B$6:$KO$83,0,MATCH(AV$5&" "&AV$4,'Manual'!$B$5:$KO$5,0)))),0,SUMIF('Manual'!$A$6:$A$81,$A53,INDEX('Manual'!$B$6:$KO$83,0,MATCH(AV$5&" "&AV$4,'Manual'!$B$5:$KO$5,0))))

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Can someone please breakdown the formula below into bite-sized chunks or explain it to

    Hi, welcome to the forum

    Hard to say without seeing what it relates to, but it looks to me like the following...
    Basically, it is summing 4 different sets of data, based on a sheet name provided in column AV, and then adding those totals together.

    The whole thing could be shortened to this...
    =IFERROR(
    SUMIFS(INDIRECT("'"&AV$4&"'!"&"$A$49:$EO$49"),INDIRECT("'"&AV$4&"'!"&"$A$4:$EO$4"),AV$5,INDIRECT("'"&AV$4&"'!"&"$A$5:$EO$5"),$A53),0)
    +IFERROR(
    SUMIF(INDIRECT("'"&AV$6&" "&$A$48&"'!"&"H:H"),$A53,(INDIRECT("'"&AV$6&" "&$A$48&"'!"&"J:J"))),0)
    +IFERROR(
    SUMIFS(INDIRECT("'"&AV$4&"'!"&"$A$48:$EO$48"),INDIRECT("'"&AV$4&"'!"&"$A$4:$EO$4"),AV$5,INDIRECT("'"&AV$4&"'!"&"$A$5:$EO$5"),$A53),0)
    +IFERROR(
    SUMIF(Manual!$A$6:$A$81,$A53,INDEX(Manual!$B$6:$KO$83,0,MATCH(AV$5&" "&AV$4,Manual!$B$5:$KO$5,0))),0)

    AV4 would contain a sheet name. This is being used by the SUMIFS, via INDIRECT, to determine which sheet to use for the sum
    So, if AV4 contained "Sheet1", that formula would reduce to...
    SUMIFS(sheet1!$A$49:$EO$49,sheet1!$A$4:$EO$4,AV$5,sheet1!$A$5:$EO$5,$A53),0)...
    etc
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Re: Can someone please breakdown the formula below into bite-sized chunks or explain it to

    This is difficult since the formula is referencing a sheet that we do not have access to.

    However, Excel allows you to see how a big formula like this is condensed further and further (your 'bite-sized chunks'), until the result is generated. It does this through the 'Evaluate Formula' function. Navigate to Formulas > Formula Auditing section > Evaluate Formula and each time you click 'Evaluate', Excel will shorten the formula a bit more for you, until it has been completely solved.

    Note that this function only shortens one part of the formula at a time to make it easy for you to understand what is going on. These are underlined to allow you to watch what happens.

+ 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. Help with a Frost Bite Time Equation
    By boynejs in forum Excel General
    Replies: 5
    Last Post: 02-12-2016, 01:26 AM
  2. Need formula that will sum up chunks of data
    By KristinMC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2015, 05:33 PM
  3. [SOLVED] Conditional formatting, formula breakdown .
    By israelalvarado in forum Excel General
    Replies: 4
    Last Post: 06-05-2014, 04:07 PM
  4. Show breakdown of a SUM formula
    By mvb83 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2013, 10:08 AM
  5. [SOLVED] breakdown fluid formula
    By t2mozjones4562 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-22-2012, 10:04 PM
  6. Breakdown hours (formula)
    By city in forum Excel General
    Replies: 2
    Last Post: 06-12-2012, 10:49 AM
  7. Breakdown a formula
    By Lucky_git in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-10-2011, 11:08 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