D
David
Greetings and TIA for any help you can give
I would like to make my sumproduct formulas more readable by referencing out
to criteria in other cells. An example:
To sum the contents of named field 'Quantity' where the named field 'fruit'
is contained in the list 'LookupFruits' i have
=sumproduct(--(not(isna(match(fruit,LookupFruits,0)))),Quantity)
this works ok but gets hard to read when other conditions are added to the
formula.
I would prefer something like this (non working example):
=sumproduct(--indirect("Condition1"),Quantity) where Condition1 is a named
cell containing <not(isna(match(fruit,LookupFruits,0))))>
I could have a list of conditions and adjacent descriptions. This would make
for "easy" reading of the worksheet.
Any ideas?
I would like to make my sumproduct formulas more readable by referencing out
to criteria in other cells. An example:
To sum the contents of named field 'Quantity' where the named field 'fruit'
is contained in the list 'LookupFruits' i have
=sumproduct(--(not(isna(match(fruit,LookupFruits,0)))),Quantity)
this works ok but gets hard to read when other conditions are added to the
formula.
I would prefer something like this (non working example):
=sumproduct(--indirect("Condition1"),Quantity) where Condition1 is a named
cell containing <not(isna(match(fruit,LookupFruits,0))))>
I could have a list of conditions and adjacent descriptions. This would make
for "easy" reading of the worksheet.
Any ideas?