Sumproduct question

ASpannTx

New Member
Joined
Mar 31, 2009
Messages
8
Thanks to your wonderful site I was able to solve half my formula problem

I have the following formula:

=SUMPRODUCT((C4:C304=701)*(L4:L304>=0.01))

But I need it to also look at M4:M304 and N4:N304 and if L,M OR N are >=0.01 count but sometime there might be a value in L M and N but i only want it to count once for that row.

Thanks in advance for any help.
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,563
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Welcome to the forum

try

=SUMPRODUCT(--((L4:L304>=0.01)+(M4:M304>=0.01)+(N4:N304>=0.01)>0)*(C4:C304=701))
 

ASpannTx

New Member
Joined
Mar 31, 2009
Messages
8

ADVERTISEMENT

Most definitely, I am so excited that it works... although I really don't understand the why behind it... if you don't mind, can you explain in layman terms the logic? If not, I am okay with Just the fact that it works.
 

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,563
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
We can evaluate a formula with Tools | Formula Auditing | Evaluate (Alt tuf) or use the icon (Evaluate Formula). You may have to add the the evaluate icon to your menu of icons.

With the above, we can visually step through the calculation. It is a good idea to work with a very concise example so we can focus on the particular challenge; it also makes it easier to follow the "Evaluation".

This helps us understand the formula and/or to troubleshoot it.

You can also search the forum for many examples and explanations.

Mr. Aladin Akyurek in particular plus others contributed greatly to the knowledge base re SumProduct.
 
Last edited:

ASpannTx

New Member
Joined
Mar 31, 2009
Messages
8

ADVERTISEMENT

Thanks again, you saved me alot of time fighting with it... Many, many thanks
 

ASpannTx

New Member
Joined
Mar 31, 2009
Messages
8
Thanks for the additional information, it helped me understand the function a little better. Thanks again to both of you for your assistance. It is much appreciated.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,518
Messages
5,596,630
Members
414,082
Latest member
sasmita

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top