HOW TO COUNT UNIQUE ACC LESS THAN OR EQUAL 1 HOUR PER MONTH

AYSHANA

Board Regular
Joined
Oct 16, 2021
Messages
90
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
DEAR ALL
GOOD DAY
HOPE DOING WELL
I WOULD LIKE TO ASK HOW CAN I GET HOW MANY UNIQUE ACC WAS ALLOCATED WITHIN LESS THAN OR EQUAL ONE HOUR PER MONTH.

I HAVE TRIED TO USE IF AND VLOOKUP FUNCTIONS BUT IT DIDN'T WORK.

APPRECIATE THE HELP

TIMEEE.xlsx
ABCDEFGHIJK
1ACC no. R Date TimeUNIT NUMBER AllocatedUNIT ALLOCATED IN SYSTEMTIME DIFFERENCEEXPECTED RESULT
2M39310806-03-23 13:0711106-03-23 13:070:00MARAPRMAYJUNJUL
3M39310806-03-23 13:0712206-03-23 13:070:0010100
4W10110705-07-23 19:5713305-07-23 21:131:16
5W10110705-07-23 19:5714405-07-23 21:131:16
6F49069031-03-23 18:14155531-03-23 21:052:51
7F49069031-03-23 18:14166631-03-23 21:052:51
8W76698324-05-23 6:09177724-05-23 6:430:34
9W76698324-05-23 6:09188824-05-23 6:430:34
10H56269130-03-23 18:40199930-03-23 23:004:20
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=D2-B2
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
hi again,

I was able to get how many unique acc i have per month

now i would like to count how many from the unique acc is greater than 2 hours based on the time difference
and how many unique acc are less than 2 hours based on the time difference

if anyone can help me with the formula
thank you.


TIMEEE.xlsx
ABCDEFGHIJKLMN
1ACC no.CIDResult Date TimeUNIT NUMBER Allocated in BGRPS orderUNIT ALLOCATED IN SYSTEMTIME DIFFERENCEUNIQUE ACC PER MONTH
2W601811L363050971229-03-23 8:27U24012301305929-03-23 13:164:49MARAPRMAYJUNJUL
3W601811L363050971229-03-23 8:27U24012300969429-03-23 12:534:2696100106108121
4W602186L363051047529-03-23 9:30U24012301366329-03-23 15:456:15
5F490690L363055713131-03-23 18:14U24012301238201-04-23 9:3715:23HOW MANY FROM THE UNIQUE ACC IS GRATER THAN 2 HOURS BASED ON TIME DIIFFERENCE
6F490690L363055713131-03-23 18:14U24012301123831-03-23 21:052:51MARAPRMAYJUNJUL
7F490690L363055713131-03-23 18:14U24012301057231-03-23 21:052:51
8H559110L363054025830-03-23 14:22U24012301424830-03-23 17:343:12
9H559110L363054025830-03-23 14:22U24012301315030-03-23 15:551:33HOW MANY FROM THE UNIQUE ACC IS LESS THAN 2 HOURS BASED ON TIME DIFFERENCE
10H562691L363054399130-03-23 18:40U24012301118230-03-23 23:004:20MARAPRMAYJUNJUL
11M459275L363046755527-03-23 5:23U24012301158628-03-23 13:207:57
12M459275L363046755527-03-23 5:23U24012301251328-03-23 13:147:51
13M459275L363046755527-03-23 5:23U24012301200827-03-23 12:377:14
14M459275L363046755527-03-23 5:23U24012301242927-03-23 7:582:35
15X382761L364001016002-04-23 15:00U24012301335602-04-23 15:200:20
16S504592L364000510601-04-23 16:29U24012301027302-04-23 5:0012:31
17S504592L364000510601-04-23 16:29U24012301012102-04-23 1:108:41
18S504592L364000510601-04-23 16:29U24012301231901-04-23 20:514:22
19M458621L363046673427-03-23 3:29U24012300899727-03-23 4:190:50
20M458621L363046673427-03-23 3:29U24012300899827-03-23 4:190:50
Sheet2
Cell Formulas
RangeFormula
H3H3=ROUNDUP(SUM(IFERROR(1/(COUNTIF($A$2:$A$2005,$A$2:$A$2005)*(TEXT($E$2:$E$2005,"mmm")=$H2)),0)),0)
I3I3=ROUNDUP(SUM(IFERROR(1/(COUNTIF($A$2:$A$2005,$A$2:$A$2005)*(TEXT($E$2:$E$2005,"mmm")=$I2)),0)),0)
J3J3=ROUNDUP(SUM(IFERROR(1/(COUNTIF($A$2:$A$2005,$A$2:$A$2005)*(TEXT($E$2:$E$2005,"mmm")=$J2)),0)),0)
K3K3=ROUNDUP(SUM(IFERROR(1/(COUNTIF($A$2:$A$2005,$A$2:$A$2005)*(TEXT($E$2:$E$2005,"mmm")=$K2)),0)),0)
L3L3=ROUNDUP(SUM(IFERROR(1/(COUNTIF($A$2:$A$2005,$A$2:$A$2005)*(TEXT($E$2:$E$2005,"mmm")=$L2)),0)),0)
F2:F20F2=E2-C2
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,146
Members
449,098
Latest member
Doanvanhieu

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