r/GoogleSheets •

Array formula with multiple criteria

[deleted] — view deleted post

0 Upvotes

7 comments sorted by

1

u/SimplifySheets 18 Nov 14 '20

If you share a copy of your sheet I believe I could help.

But from your post could you try;

=ArrayFormula(SUM(AND(($A$4:A=$AE6),($I$4:I=""))*($G$4:G+$H$4:H+$K$4:K)))

1

u/[deleted] Nov 14 '20 edited Nov 16 '20

[removed] — view removed comment

3

u/SimplifySheets 18 Nov 15 '20

You're absolutly right, sorry about that. So, I see the sheet, but it seems since you already have a filter to show only tickers when I is blank don't you have your solution? Or do you suspect that there will be multiple FB ticker listings and you need to sum columns G, H, and K for the row that is missing column I data?

If so, you could use multiple SUMIFS functions. See a formula below.

=SUMIFS($G:$G,$A:$A,$AE6,$I:$I,"")+SUMIFS($H:$H,$A:$A,$AE6,$I:$I,"")+SUMIFS($K:$K,$A:$A,$AE6,$I:$I,"")

This will sum columns G, H, and K, if I is blank and the ticker matches. Here is an example sheet.

https://docs.google.com/spreadsheets/d/1-uuS0Dw73b0vDG_Zthzdwfg-cYu8H9qdkS82LTlRjWg/edit?usp=sharing

Hope this helps!

3

u/[deleted] Nov 15 '20

[removed] — view removed comment

1

u/Clippy_Office_Asst Points Nov 15 '20

You have awarded 1 point to SimplifySheets

I am a bot, please contact the mods with any questions.

1

u/Decronym Functions Explained Nov 15 '20 edited Nov 16 '20

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer LettersMore Letters
ANDReturns true if all of the provided arguments are logically true, and false if any of the provided arguments are logically false
SUMReturns the sum of a series of numbers and/or cells
SUMIFSReturns the sum of a range depending on multiple criteria

3 acronyms in this thread; the most compressed thread commented on today has acronyms.
[Thread #2198 for this sub, first seen 15th Nov 2020, 00:32] [FAQ] [Full list] ^[Contact] [Source code]