Counting items by criterias in 2 columns

Joined
Oct 19, 2020
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hello All...

For the follwing table, I need formulas in F1, F2, F3 and F4, in order to count the total number of customers, from A8 to A17, matching the criterias shown in A1, A2, A3, A4.
Condition: countings only for customers with sales in both years!
Can anyone help me?

Thank you!

1728023656536.png
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hello, please test the following:

Excel Formula:
=ROWS(FILTER(F8:F17,(B8:B17>0)*(D8:D17>0)*(F8:F17>0)))

Excel Formula:
=ROWS(FILTER(F8:F17,(B8:B17>0)*(D8:D17>0)*(F8:F17<0)))

Excel Formula:
=ROWS(FILTER(G8:G17,(B8:B17>0)*(D8:D17>0)*(G8:G17>0)))

Excel Formula:
=ROWS(FILTER(G8:G17,(B8:B17>0)*(D8:D17>0)*(G8:G17<0)))
 
Upvote 1
Hi, something like this maybe.

Book1
ABCDEFG
11
22
32
43
5Year 2023Year 2023Diff
6SalesMarkupSalesMarkupSalesMarkup
7
8A100102005100-5
9B3003020040-10010
10C30030-300-30
11D5001050010
12E5002010010-400-10
13F500505005000
14G4001040020010
15H30030300200-10
16I00
17J80080-800-80
Sheet1
Cell Formulas
RangeFormula
F1F1=COUNTIFS($B$8:$B$17,">0",$D$8:$D$17,">0",$F$8:$F$17,">0")
F2F2=COUNTIFS($B$8:$B$17,">0",$D$8:$D$17,">0",$F$8:$F$17,"<0")
F3F3=COUNTIFS($B$8:$B$17,">0",$D$8:$D$17,">0",$G$8:$G$17,">0")
F4F4=COUNTIFS($B$8:$B$17,">0",$D$8:$D$17,">0",$G$8:$G$17,"<0")
F8:G17F8=D8-B8
 
Upvote 1
Solution

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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