ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   cell reference in sumifs (https://www.excelbanter.com/excel-worksheet-functions/189193-cell-reference-sumifs.html)

jai

cell reference in sumifs
 
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.




Teethless mama

cell reference in sumifs
 
C5: holds DR
D5: holds SS

=SUMPRODUCT(--(ISNUMBER(MATCH(L:L,C5:D5,0))),--(S:S=B5),W:W)


"Jai" wrote:

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.




jai

cell reference in sumifs
 
Thanks, but the problem is I need to use only one cell as the reference.

"Teethless mama" wrote:

C5: holds DR
D5: holds SS

=SUMPRODUCT(--(ISNUMBER(MATCH(L:L,C5:D5,0))),--(S:S=B5),W:W)


"Jai" wrote:

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.




Teethless mama

cell reference in sumifs
 
C5: holds DR,SS

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

Adjust range to suit


"Jai" wrote:

Thanks, but the problem is I need to use only one cell as the reference.

"Teethless mama" wrote:

C5: holds DR
D5: holds SS

=SUMPRODUCT(--(ISNUMBER(MATCH(L:L,C5:D5,0))),--(S:S=B5),W:W)


"Jai" wrote:

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. Valko

cell reference in sumifs
 
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.


--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in message
...
C5: holds DR,SS

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

Adjust range to suit


"Jai" wrote:

Thanks, but the problem is I need to use only one cell as the reference.

"Teethless mama" wrote:

C5: holds DR
D5: holds SS

=SUMPRODUCT(--(ISNUMBER(MATCH(L:L,C5:D5,0))),--(S:S=B5),W:W)


"Jai" wrote:

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.







All times are GMT +1. The time now is 04:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com