Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jai jai is offline
external usenet poster
 
Posts: 71
Default 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.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jai jai is offline
external usenet poster
 
Posts: 71
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumifs will not work with a cell reference as criteria BillGr Excel Discussion (Misc queries) 4 April 3rd 23 04:18 PM
Sumifs - greater than criteria with a Cell Reference Dweid Excel Worksheet Functions 4 April 3rd 23 11:08 AM
absolute cell reference A spreadsheet cell reference that does no help Excel Discussion (Misc queries) 1 January 18th 06 06:56 PM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable [email protected] Excel Worksheet Functions 2 December 11th 04 12:00 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"