Formula Help

ultra429

New Member
Joined
Jun 9, 2011
Messages
3
I have a formula I've been trying to work on unsuccessfully. I need the formula to count the frequency of the numbers less than 4 in Column L, but based on the text "Woodland Hills" in column C.

I figure this is an array formula, but I have not been able to find anything in my Google searches that combines these two criterion.

Any help is appreciated. ;)
 

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.
Welcome to the forums!

If you have Excel 2003 or lower, use:
=SUMPRODUCT(--(L1:L100<4),--(C1:C100="Woodland Hills"))

Excel 2007 or Newer:
=COUNTIFS(L:L,"<4",C:C,"=Woodland Hills")
 
Upvote 0
I have a formula I've been trying to work on unsuccessfully. I need the formula to count the frequency of the numbers less than 4 in Column L, but based on the text "Woodland Hills" in column C.

I figure this is an array formula, but I have not been able to find anything in my Google searches that combines these two criterion.

Any help is appreciated. ;)
One way...

This will work in ANY version of Excel.

=SUMPRODUCT(--(C2:C10="Woodland Hills"),--(L2:L10 < 4))

Better to use cells to hold the criteria:
  • A2 = Woodland Hills
  • B2 = 4
Then:

=SUMPRODUCT(--(C2:C10=A2),--(L2:L10<B2))< p> < B2))

If you're using Excel 2007 or later...

=COUNTIFS(C2:C10,A2,L2:L10,"<"&B2)
 
Last edited:
Upvote 0
One way...

This will work in ANY version of Excel.

=SUMPRODUCT(--(C2:C10="Woodland Hills"),--(L2:L10 < 4))


Better to use cells to hold the criteria:
  • A2 = Woodland Hills
  • B2 = 4
Then:

=SUMPRODUCT(--(C2:C10=A2),--(L2:L10<B2))< p> < B2))

If you're using Excel 2007 or later...

=COUNTIFS(C2:C10,A2,L2:L10,"<"&B2)

Wow this works perfectly. Thank you so much for your help! :biggrin:
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

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