SumProduct with a wildcard. I have some criteria that may be blank, in which case I don't want them included in the SumProduct at all.
The forumlae are in a table, the structure of which needs to remain static (as opposed to pivottables) for charts. I am trying to stay away from Dsum, as each row in my tables has different criteria (based on user input form, row and col headings etc.), which with Dsum would require lots of hidden criteria ranges
Basic/cutdown example of my problem:
=SUMPRODUCT(Mth*(Product=$A38)*(Hub=L1)*(Measure=L2)*(Type=L3))
Sometimes the variable references (e.g. L1 for Hub) return blank in cases where users want to see the combined result for ALL hubs. This is functionality I want to accomodate.
If anyone has any ideas would be appreciated.
Thanks!
The forumlae are in a table, the structure of which needs to remain static (as opposed to pivottables) for charts. I am trying to stay away from Dsum, as each row in my tables has different criteria (based on user input form, row and col headings etc.), which with Dsum would require lots of hidden criteria ranges
Basic/cutdown example of my problem:
=SUMPRODUCT(Mth*(Product=$A38)*(Hub=L1)*(Measure=L2)*(Type=L3))
Sometimes the variable references (e.g. L1 for Hub) return blank in cases where users want to see the combined result for ALL hubs. This is functionality I want to accomodate.
If anyone has any ideas would be appreciated.
Thanks!