cell reference in sumifs

J

Jai

Hi,

I want to use

=SUM(SUMIFS(W:W,L:L,{"DR","SS"},S:S,B5))

which works but I want the {"DR","SS"} arguement to come from a cell
reference. i.e =SUM(SUMIFS(W:W,L:L,C5,S:S,B5)) where C5 is {"DR","SS"}.
Unfortunately this isn't working for me. Any suggestions? Thanks.
 
T

Teethless mama

C5: holds DR,SS

=SUMPRODUCT((ISNUMBER(SEARCH(L1:L100,C5)))*(S1:S100=B5),W1:W100)

Adjust range to suit
 
T

T. Valko

C5: holds DR,SS

That'll be treated as a single literal string. Based on the formula the OP
posted and their follow-up description, it sounds like they want to use a
single cell to hold 2 separate criteria.

While it could be done I would recommend they not do it that way.
 

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

Top