Sumproduct, Validation & Blancs

  • Thread starter Thread starter Bec
  • Start date Start date
B

Bec

I have the following categories

Monitor-CRT = asstype
17 inch = assdescr
1 = age

formuala reads
=sumproduct(--(asstype=selection1),--(assdescr=selection2),--(age=1),

I'm using a validation list to select the criteria needed
Monitor-CRT & 17 Inch - this works fine with correct calculation

but if I only want to search on asstype and the assdescr is blank it doesn't
return the correct total because in the data the assdescr doesn't have any
blank fields.
How can I have the formuala in the one cell?

Suggestions?

TIA
Bec
 
Is this what you mean

=IF(selection2="",sumproduct(--(asstype=selection1),--(age=1),sumproduct(--(asstype=selection1),--(assdescr=selection2),--(age=1))
 
What if selection2 isn't blank?

Bob Phillips said:
Is this what you mean

=IF(selection2="",sumproduct(--(asstype=selection1),--(age=1),sumproduct(--(asstype=selection1),--(assdescr=selection2),--(age=1))

--
__________________________________
HTH

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sumproduct Multiple W/Sheets 5
SUMPRODUCT 1
Excel Sumproduct 0
SUMPRODUCT problems...argh... 9
Sumproduct and CountA combined? Is that possible? 1
sumproduct (month) 7
SUMPRODUCT with an OR component 4
SUMPRODUCT query 3

Back
Top