简体   繁体   中英

How to write this formula on an easier way?

I need to write that on each cell:

A1: =SUMIFS($D$7:$D$100;$E$7:$E$100;"1";$I$7:$I$100;">0")

B1: =SUMIFS($D$7:$D$100;$E$7:$E$100;"1";$I$7:$I$100;">1") + SUMIFS($D$7:$D$100;$E$7:$E$100;"2";$I$7:$I$100;">0")

C1: =SUMIFS($D$7:$D$100;$E$7:$E$100;"1";$I$7:$I$100;">2") + SUMIFS($D$7:$D$100;$E$7:$E$100;"2";$I$7:$I$100;">1") + SUMIFS($D$7:$D$100;$E$7:$E$100;"3";$I$7:$I$100;">0")

D1: =SUMIFS($D$7:$D$100;$E$7:$E$100;"1";$I$7:$I$100;">3") + SUMIFS($D$7:$D$100;$E$7:$E$100;"2";$I$7:$I$100;">2") + SUMIFS($D$7:$D$100;$E$7:$E$100;"3";$I$7:$I$100;">1") + SUMIFS($D$7:$D$100;$E$7:$E$100;"4";$I$7:$I$100;">0")

And so on....

How can I make this easier to do?

Here. Write in A1 and pull to the right:

=SUMPRODUCT(SUMIFS($D$7:$D$100;$E$7:$E$100;INDEX(COLUMN($A$1:A$1);;);$I$7:$I$100;">" & INDEX(COLUMN(A1)-COLUMN($A$1:A$1);;)))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM