abhi_jain80
New Member
- Joined
- May 31, 2021
- Messages
- 27
- Office Version
- 2016
- Platform
- Windows
Hi experts,
I am struggling to write a vba code to count the unique values based on criteria. Can somebody help me please?
Like, I have the data as shown in the mini-sheet attached. I need to find the unique number of items# from column2 if the Date is blank in column1. As per the sample data, the result should be 2. Thank in advance...
I am struggling to write a vba code to count the unique values based on criteria. Can somebody help me please?
Like, I have the data as shown in the mini-sheet attached. I need to find the unique number of items# from column2 if the Date is blank in column1. As per the sample data, the result should be 2. Thank in advance...
Spares Analytics ToolKit_2021.xlsb | ||||
---|---|---|---|---|
M | N | |||
1 | Date | Item# | ||
2 | 17/01/2021 | 10000036 | ||
3 | 16/02/2021 | 10000036 | ||
4 | 24/02/2021 | 10000038 | ||
5 | 04/03/2021 | 10000038 | ||
6 | 10000038 | |||
7 | 24/03/2021 | 10000039 | ||
8 | 28/03/2021 | 10000094 | ||
9 | 10000094 | |||
10 | 20/04/2021 | 10000048 | ||
11 | 10000094 | |||
12 | 10/05/2021 | 10000060 | ||
13 | 09/05/2021 | 10000060 | ||
14 | 10000094 | |||
15 | 25/04/2021 | 10000085 | ||
16 | 15/03/2021 | 10000093 | ||
17 | 08/04/2021 | 10000093 | ||
Purchases |