count if...

el c

New Member
Joined
Mar 24, 2020
Messages
16
Office Version
  1. 365
Platform
  1. Windows
hi

Do you know how i can count how many times a number is shown in a column "item" but for each "order" counting as once, like the example? :
Book3.xlsx
ABCDE
1OrdersItem
2133
3133total of 33:2
4122
5255
6233
7222
Sheet1
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try:

Book1
ABCDE
1OrdersItem
2133
3133total of 33:2
4122
5255
6233
7222
Sheet1
Cell Formulas
RangeFormula
E3E3=COUNT(UNIQUE(FILTER($A$2:$A$7,$B$2:$B$7=33)))
 
Upvote 0
Try:

Book1
ABCDE
1OrdersItem
2133
3133total of 33:2
4122
5255
6233
7222
Sheet1
Cell Formulas
RangeFormula
E3E3=COUNT(UNIQUE(FILTER($A$2:$A$7,$B$2:$B$7=33)))
An error message apears and it says : That function isn't valid
 
Upvote 0
Try:
This is an array function and must be entered with CTRL-SHIFT-ENTER.

Book1
ABCDE
1OrdersItem
2133
3133total of 33:2
4122
5255
6233
7222
Sheet1
Cell Formulas
RangeFormula
E3E3{=SUM(IF(FREQUENCY(IF($B$2:$B$7=33,MATCH($A$2:$A$7,$A$2:$A$7,0)),ROW($A$2:$A$7)-ROW($A$2)+1),1))}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
Another option
+Fluff.xlsm
ABCDE
1OrdersItem
2133
3133333
4122
5255
6233
7222
8322
9355
10333
List
Cell Formulas
RangeFormula
E3E3=SUM(--(FREQUENCY(IF(B2:B10=D3,A2:A10),A2:A10)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,664
Members
452,992
Latest member
TokugawaIesuma

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