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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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