• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help needed for conditional sum formula

tarun_1

New Member
Hi,

We can use Sumproduct or Sumifs formula to get conditional sum from a row.

But what if formula has to choose which column to take for making conditional sum?

Attached is excel file as an example. Our source data is spread across 3000 rows and 200 columns & output data template is spread across 30000 rows

-regards,
tarun_1
 

Attachments

  • example.xlsx
    9.5 KB · Views: 9
Tarun

In J18: Have a look at:
=SUMPRODUCT(($A$3:$A$9=$F18)*($B$3:$B$9=$G18)*($C$3:$C$9=$E18)*($D$3:$D$9=$H18)*($E$3:$E$9=$I18)*OFFSET($E$3:$E$9,,MATCH($C18&$D18,$F$1:$M$1&$F$2:$M$2,0)))
Copy down as required
 
hi tarun,
=SUMPRODUCT(DATA,(HEAD1=$F18)*(HEAD2=$G18)*(HEAD3=$E18)*(HEAD4=$H18)*(HEAD5=$I18)*(COLUMN1=$C18)*(COLUMN2=$D18))
go through the attach file may help you.
 

Attachments

  • example.xlsx
    10.4 KB · Views: 9
Last edited:
Back
Top