Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
floridasurfn
 
Posts: n/a
Default sumproduct & indirect

i am trying to use sumproduct to both:

1. Count a quanity based on search criteria
2. Sum a column based on search criteria

My formula looks like this so far
=SUMPRODUCT(INDIRECT(--("CLIENT!$I$2:$I"&$N$1="SUNBELT")),(INDIRECT(--("CLIENT!$J$2:$J"&$N$1="YES"))),(INDIRECT(--("CLIENT!$K$2:$K"&$N$1=NO))))

I was trying to get this formula to locate data on "client!" and count the
occurances
of the search criteria happening at the same time, while indirectly
referencing a number on my "calculations" sheet ( N1 ) which has the final
row # to search through

The current formula returns a #ref remark

Is it possible to combine these funcitons & can you then change formula to
sum a column (i.e. column Q) based on the same criteria.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(INDIRECT("CLIENT!$I$2:$I"&$N$1)="SUNBELT"),--(INDIRECT("CLIEN
T!$J$2:$J"&$N$1)="YES"),--(INDIRECT("CLIENT!$K$2:$K"&$N$1)="NO"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"floridasurfn" wrote in message
...
i am trying to use sumproduct to both:

1. Count a quanity based on search criteria
2. Sum a column based on search criteria

My formula looks like this so far

=SUMPRODUCT(INDIRECT(--("CLIENT!$I$2:$I"&$N$1="SUNBELT")),(INDIRECT(--("CLIE
NT!$J$2:$J"&$N$1="YES"))),(INDIRECT(--("CLIENT!$K$2:$K"&$N$1=NO))))

I was trying to get this formula to locate data on "client!" and count the
occurances
of the search criteria happening at the same time, while indirectly
referencing a number on my "calculations" sheet ( N1 ) which has the final
row # to search through

The current formula returns a #ref remark

Is it possible to combine these funcitons & can you then change formula to
sum a column (i.e. column Q) based on the same criteria.



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Use it like this

SUMPRODUCT(--(INDIRECT("'CLIENT'!$I$2:$I"&$N$1)="SUNBELT"),--and so on

adapt this to the other ranges

I assume you forgot to add the quotations to "NO" in your example


--

Regards,

Peo Sjoblom


"floridasurfn" wrote in message
...
i am trying to use sumproduct to both:

1. Count a quanity based on search criteria
2. Sum a column based on search criteria

My formula looks like this so far

=SUMPRODUCT(INDIRECT(--("CLIENT!$I$2:$I"&$N$1="SUNBELT")),(INDIRECT(--("CLIE
NT!$J$2:$J"&$N$1="YES"))),(INDIRECT(--("CLIENT!$K$2:$K"&$N$1=NO))))

I was trying to get this formula to locate data on "client!" and count the
occurances
of the search criteria happening at the same time, while indirectly
referencing a number on my "calculations" sheet ( N1 ) which has the final
row # to search through

The current formula returns a #ref remark

Is it possible to combine these funcitons & can you then change formula to
sum a column (i.e. column Q) based on the same criteria.



  #4   Report Post  
floridasurfn
 
Posts: n/a
Default

thanks guys both of these helped me out ... sorry i took so long to reply

"floridasurfn" wrote:

i am trying to use sumproduct to both:

1. Count a quanity based on search criteria
2. Sum a column based on search criteria

My formula looks like this so far
=SUMPRODUCT(INDIRECT(--("CLIENT!$I$2:$I"&$N$1="SUNBELT")),(INDIRECT(--("CLIENT!$J$2:$J"&$N$1="YES"))),(INDIRECT(--("CLIENT!$K$2:$K"&$N$1=NO))))

I was trying to get this formula to locate data on "client!" and count the
occurances
of the search criteria happening at the same time, while indirectly
referencing a number on my "calculations" sheet ( N1 ) which has the final
row # to search through

The current formula returns a #ref remark

Is it possible to combine these funcitons & can you then change formula to
sum a column (i.e. column Q) based on the same criteria.

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
Indirect range in SUMPRODUCT? BobT Excel Discussion (Misc queries) 2 February 16th 05 08:51 PM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Another Sumproduct & #N/A problem Dave Davis Excel Worksheet Functions 3 January 10th 05 03:59 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 01:09 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"