Array Formula

sabbathnut

New Member
Joined
Dec 20, 2007
Messages
9
Hello

I was wondering if anyone could help with this array formula

Column A is customer
Column B is the percentage

A B
Smiths .14
Smiths .25
Bobs -.14
Bobs 0
Smiths .96
Smiths -.65


I need to know by specific customer how many times within there products they are below 15% and greater than -15%

Maybe it’s Sunday and my brain isn’t working I cannot work it out
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hello

I was wondering if anyone could help with this array formula

Column A is customer
Column B is the percentage

A B
Smiths .14
Smiths .25
Bobs -.14
Bobs 0
Smiths .96
Smiths -.65


I need to know by specific customer how many times within there products they are below 15% and greater than -15%

Maybe it’s Sunday and my brain isn’t working I cannot work it out
Try one of these...

Use cells to hold the criteria:
  • D2 = 0.15
  • E2 = -0.15
  • F2 = Smiths
This one will work in any version of Excel:

=SUMPRODUCT(--(A2:A7=F2),--(B2:B7>=E2),--(B2:B7<=D2))

This one will work in Excel versions 2007 and later:

=COUNTIFS(A2:A7,F2,B2:B7,">="&E2,B2:B7,"<="&D2)
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,242
Members
452,898
Latest member
Capolavoro009

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