-3

I need a function to search my spreadsheet for which there will be multiple arrays. I need the search to include all the cells in between two specific headers throughout the spreadsheet but only sum certain cells between these headers from respective data.

{'A':['dog','cat','dog','dog'],
 'B':[4,2,1,2],
 'C':['dog'],
 'D':[3],
}

Per this example, I need the function to search the 1st column for any cells located in between header "A" and "B". Then I need the function to pick out the cells named "dog" and sum the totals (7).

4

1 に答える 1

1

SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …) 合計する範囲、基準を含む範囲、およびその基準を指定すると、これを行うことができます。

以下をお持ちの方は、

 A  B    C  D
Dog 4   dog 3
cat 2       
dog 1       
dog 2       

=SUMIFS(B:B,A:A,"dog")

于 2013-06-04T19:52:33.060 に答える