How to get specific data count from Excel sheet

Hello All,

I have an excel sheet with different user names and contact details. I need to get count each user how many contacts they created. I have attached my sample data’s from excel.

Name Contact Name Created Time
User1 Contact1 2 Days ago
User1 Contact2 2 Days ago
User2 Contact3 2 Days ago
User2 Contact4 2 Days ago
User2 Contact5 2 Days ago
User3 Contact6 2 Days ago
User3 Contact7 2 Days ago
User3 Contact8 2 Days ago

Any help!

Find starter help here:
yogavalli.xaml (8.5 KB)

For time reasons I did setup with generic data:



Use read range: dt
then use assign

1 Like

Hello @ImPratham45,

Thank you for your response. But I need the output like
user 1: 2,
user2 : 3
user3: 3.

Like that way count I need.

try this
CountProcess (2).zip (23.3 KB)


Thank you @ImPratham45.

Working great :grinning:


Happy Automation

Hello @ImPratham45,

I need to one changes here, I have one more column likes call count. I need to get sum of calls count.

Any Guide on this!

Use Compute method

dt.Compute("SUM(Calls), “”)

Hello @Annakarthi7,

I facing the below issue, when i am using your command.

Missed double quotes
dt.Compute(“SUM(Calls)”, “”)

Main.xaml (8.8 KB) test.xlsx (8.1 KB)

Hello @ImPratham45,

I am facing that Issue Assign: Conversion from string “” to type ‘Integer’ is not valid.

That means there is no data in that cell
then use if condition in for each row
If Row(“Acc”).Tostring=""
then nothing else use that assign

Hello @ImPratham45,

I will explain clearly about my input and output, then it won’t make any confuses.

Input format :

CallerID Destination Duration
User1 12345678 0:51
User1 6785675798 0:49
User2 567578989 0:34
User2 12345678 0:08
User1 12345678 0:13
User2 12345678 0:17
User3 12345678 0:32
User3 896856453 0:17
User1 9688656454 0:23

Output Format:

CallerId Destination Count Total Duration
User1 4 2:16
User2 3 0:59
User3 2 0:49

Main.xaml (16.6 KB) Test.xlsx (9.1 KB)

Hello @ImPratham45,

Just now i cross checked, We have time format 12:51:00 format. So we are getting wrong output.

please change the data type in excel

Hello @ImPratham45,

I have changed datatype and I am trying to execute bot. facing the below issue.

Oh sorry i didnt saw that value it is in time format
i will do it tom