**Question description:**

*This user has given permission to use the problem statement for this
blog.*

I need explanation for the excel formula below... =IF(ISERROR(SUMIFS(INDIRECT("'"&BE$6&"'!"&"$G:$G"),INDIRECT("'"&BE$6&"'!"&"$R:$R"),$A39,INDIRECT("'"&BE$6&"'!"&"$F:$F"),"<>52711",INDIRECT("'"&BE$6&"'!"&"$C:$C"),10)),0,SUMIFS(INDIRECT("'"&BE$6&"'!"&"$G:$G"),INDIRECT("'"&BE$6&"'!"&"$R:$R"),$A39,INDIRECT("'"&BE$6&"'!"&"$F:$F"),"<>52711",INDIRECT("'"&BE$6&"'!"&"$C:$C"),10))+IF(ISERROR(SUMIFS(INDIRECT("'"&BE$4&"'!"&"$A$30:$EO$30"),INDIRECT("'"&BE$4&"'!"&"$A$4:$EO$4"),BE$5,INDIRECT("'"&BE$4&"'!"&"$A$5:$EO$5"),$A39)),0,SUMIFS(INDIRECT("'"&BE$4&"'!"&"$A$30:$EO$30"),INDIRECT("'"&BE$4&"'!"&"$A$4:$EO$4"),BE$5,INDIRECT("'"&BE$4&"'!"&"$A$5:$EO$5"),$A39))+IF(ISERROR(SUMIF(INDIRECT("'"&BE$6&" "&$A$31&"'!"&"H:H"),$A39,(INDIRECT("'"&BE$6&" "&$A$31&"'!"&"I:I")))),0,SUMIF(INDIRECT("'"&BE$6&" "&$A$31&"'!"&"H:H"),$A39,(INDIRECT("'"&BE$6&" "&$A$31&"'!"&"I:I"))))

Solved by V. A. in 20 mins

This is the chat thread from the real Excelchat help session. It contains no private user
information.

Excelchat Expert
18/10/2017 - 02:42

Hello, I understand that you need help with the explanation of the formula above, right?

User
18/10/2017 - 02:42

yes

Excelchat Expert
18/10/2017 - 02:42

If you could upload your file then this would be much easier as the formula above is referencing something dynamically and I'll be able to show you how that is done.

User
18/10/2017 - 02:42

I do not have the excel file

Excelchat Expert
18/10/2017 - 02:43

I see, Okay, I'll try my best to explain it then but this can get confusing. :)

User
18/10/2017 - 02:43

no pro

Excelchat Expert
18/10/2017 - 02:43

Basically this is just multiple SUMIFS sumed together. What makes this a bit confusing is the use of INDIRECT()

Excelchat Expert
18/10/2017 - 02:44

Now indirect allows you to have strings be used as cell references.

Excelchat Expert
18/10/2017 - 02:44

For instance, take a look at C2 in the Document Preview.

User
18/10/2017 - 02:44

ok

Excelchat Expert
18/10/2017 - 02:45

The formula there is similar to the formula that is enclosed in your INDIRECT

Excelchat Expert
18/10/2017 - 02:45

It is currently referencing B6 so if we put a value in B6, it adds it to the formula.

Excelchat Expert
18/10/2017 - 02:45

For example, B6 = Sheet2

Excelchat Expert
18/10/2017 - 02:46

The it means that your SUMIFS function is referencing 'Sheet2'!$G:$G

Excelchat Expert
18/10/2017 - 02:46

Using INDIRECT allows you to create references DYNAMICALLY

User
18/10/2017 - 02:46

so what how would I know what is "!$G:$G sheet?

Excelchat Expert
18/10/2017 - 02:47

In the actual formula, it is referencing BE6

User
18/10/2017 - 02:47

ok

Excelchat Expert
18/10/2017 - 02:47

So whatever the value of your BE6 is the sheet name it is using the SUMIFS()

Excelchat Expert
18/10/2017 - 02:47

Here's some more example.

Excelchat Expert
18/10/2017 - 02:48

If you'll look at C2, I changed it to be a dynamic SUM formula.

Excelchat Expert
18/10/2017 - 02:48

Now, it depends on the value of B6 to know which Sheet to sum.

User
18/10/2017 - 02:48

ok

Excelchat Expert
18/10/2017 - 02:48

So if you change the value of B6, it automatically adjusts which sheet to perform the SUM() with.

Excelchat Expert
18/10/2017 - 02:49

You can try changing B6 and see for youself how it works.

Excelchat Expert
18/10/2017 - 02:49

It's basically what your formula is doing but for SUMIFS instead of SUM()

User
18/10/2017 - 02:49

ok

Excelchat Expert
18/10/2017 - 02:49

I hope I was able to explain it to you clearly.

User
18/10/2017 - 02:50

another question

User
18/10/2017 - 02:50

<>52711"

Excelchat Expert
18/10/2017 - 02:50

Okay, we normally are only authorized to answer 1 question per session but if it is a simple one I can maybe bend the rules a little.

User
18/10/2017 - 02:50

thx

Excelchat Expert
18/10/2017 - 02:50

Not equal to 52711

Excelchat Expert
18/10/2017 - 02:50

That's the meaning of that part.

Excelchat Expert
18/10/2017 - 02:51

So basically, one of your criteria for the SUMIFS() is that it must NOT BE EQUAL TO 52711

Excelchat Expert
18/10/2017 - 02:51

If it is equal to 52711 then it won't add it to the total.

Excelchat Expert
18/10/2017 - 02:54

I have applied the SUMIFS formula in C2.

Excelchat Expert
18/10/2017 - 02:55

As you can see it only gets the total of those that are NOT 52711 in column F

User
18/10/2017 - 02:55

yes

Excelchat Expert
18/10/2017 - 02:56

That's basically how yours works but yours is composed of multiple sumifs that are added togethere.

Excelchat Expert
18/10/2017 - 02:56

And with different criteria.

User
18/10/2017 - 02:57

yeah. The problem I was having was $F:$F

Excelchat Expert
18/10/2017 - 02:57

Were you able to figure it out now?

User
18/10/2017 - 02:58

yes

Excelchat Expert
18/10/2017 - 02:58

That's great!

Excelchat Expert
18/10/2017 - 02:58

Would there be anything else that I can help you with regards to the original question?

User
18/10/2017 - 03:00

No. You've done wonderful job!

Excelchat Expert
18/10/2017 - 03:00

Alright, if you have no other questions regarding the original concern, I'd appreciate a 5-star rating if you think I deserve it. :)

User
18/10/2017 - 03:00

Thanks so much

Excelchat Expert
18/10/2017 - 03:00

Please do not forget to click the End Session otherwise I'll be stuck here until the timer expires and be unable to help others. Thank you.

User
18/10/2017 - 03:00

where can I rate you?

Excelchat Expert
18/10/2017 - 03:00

Once you end the session, you'll get the chance.

Excelchat Expert
18/10/2017 - 03:00

I'd appreciate it. :)

User
18/10/2017 - 03:01

ok

**This is the output file from the real Excelchat help session:**

*This is an example of the expert help you can get. It contains no private user
information.*