How to find count of value in excel with using IF condition?
Hello @taruna.mehra
You are looking to take which count either number of rows or the number of cells. Can you please be more specific on what you are looking for
Regards,
Venkatesh R.
- Read Range and store in the variable"DT"
- If you need Row
- DT.Rows.Count
- If Column
- DT.Columns.Count
OR
4)You need a count for specific fields
-You can use “Filter Data Table” and you can take the count you want
Thanks and Regards
Sudharsan Ka
Here is the sample workflow
excelCounts.xaml (6.8 KB)
Hope this will work!
Let me know if you face any issue
Regards
Gokul
This I have done and wanted to try if else condition
Hi
I wanted to see how many times one value has been repeated in a data table.
@taruna.mehra
Can you give overview of the task?
Yes sure. I wanted to count how many times one name has been repeated in a data table.
Sorry I am learning UiPath and it’s new to me.
As @Sudharsan_Ka suggested by point 4 you can give a try with filter datatable activity or Select method.
Use can try select method like below.
DT.Select("[YourColumname]='yourSearchvalue'”).Count
Regards
Okay Then Try this
- Read Range and store in the variable"DT"
- For Each row in DT your Variable Name
- If Condition: row(“Name”).Contains(“You can give the name that you want to count”)
True:Assign an Integer variable (Count =0 as default) in the Variable panel
Assign Activity :Count = Count +1
Else: Continue Activity
Thanks and will try this for sure. Will let you if it works smoothly
Sure
Let me know this works for you