Sumproduct help

LOUBOYBEAR

New Member
Joined
Feb 10, 2011
Messages
25
Hi all, I am wanting to create a sumproduct formula looking at three columns. One of these colums has 3 possible criteria I want to pull out.
I have tried using the OR function for the range with 3 possible codes but it doesnt work.

I need to count column L if column F = "O" and
Column J = "RS" OR "DE" OR "TE"

I have tried
=SUMPRODUCT($F$3:$F$996="O")*(OR($J$3:$J$996="rs",'$J$3:$J$996="de",$J$3:$J$996="te"))*($L$3:$L$996))

any suugestions appreciated!
thanks.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Are you trying to count how many rows make all the criteria, or multiply any part?
 
Upvote 0
Hi LOUBOYBEAR,

Try with this array formula:
Excel Workbook
FGHIJKLM
1Rt17
2ter2
3ORS4
4ODE1
5Ltr5
6Olo1
7OTE2
...
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself

Regards.
 
Upvote 0
Yes, column L has an 1 in each row. Any entries that are TRUE in columns J and F are multiplied by 1 (from column L)
 
Upvote 0
Maybe this

=SUMPRODUCT(($F$3:$F$996="O")*(($J$3:$J$996="rs")+($J$3:$J$996="de")+($J$3:$J$996="te"))*$L$3:$L$996)

HTH

M.
 
Upvote 0
Your formula seemed to work for me, other than a typo I think:
=SUMPRODUCT(($F$3:$F$996="O")*(OR($J$3:$J$996="rs",$J$3:$J$996="de",$J$3:$J$996="te"))*($L$3:L$996))

I note that if L col has numbers other than 1, these are reflected in the return. If you only want the row counted if L Col has a 1, then maybe:

=SUMPRODUCT(--($F$3:$F$996="O")*(OR($J$3:$J$996="rs",$J$3:$J$996="de",$J$3:$J$996="te")),--($L$3:L$996=1))
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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
Back
Top