Counting Duplicate values as one

anu0512

New Member
Joined
Feb 19, 2019
Messages
9
Hi,

I want to know to count

Every month, when a driver delivers multiple invoice items, I record the trip number and vehicle number. For example, Driver Hameed's first trip in January would be assigned the trip number H-1, along with multiple invoices and the vehicle number DXB-45755. If he makes another delivery on the same day or a different day, the trip number would be H-2. This process applies to all drivers. In the next month, the trip number would reset to H-1. My problem is: how can I count multiple H-1 as one trip and same will apply to other drivers.
 
Last edited by a moderator:
what version of excel are you using
are all H-1 in month 1 - count as 1 ?

can you give some expected results

i dont see a H-2 as an example
 
Upvote 0
Perhaps
Excel Formula:
 =SUM(1/COUNTIFS(A2:A12,A2:A12))
 
Upvote 0
if you just want to know how many UNIQUE values are in column A then
=ROWS(UNIQUE(A2:A12))

whihc in example is 7

But not sure this is what you are after


Book1
ABCDEFG
1Trip No.Invoice No:Driver Name:Vehicle No.Trip DateMonthCOUNT
2H-1INV128713HameedDXB-457554529417
3G-3INV128726MusharrafDXB-21396452941
4G-5INV128728ToheedDXB-77307452941
5H-1INV128714HameedDXB-45755452941
6H-1INV128715HameedDXB-45755452941
7K-1INV128704Kanusammy oldDXB-78586452941
8K-1INV128705Kanusammy oldDXB-78586452941
9G-6INV128744AhmedDXB-16208452941
10J-1INV128760ArsalanAD-75134452941
11TR-1INV128764RazeemDXB-58718452941
12H-1INV128716HameedDXB-45755452941
Sheet1
Cell Formulas
RangeFormula
G2G2=ROWS(UNIQUE(A2:A12))
 
Upvote 0

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