Skip to main content
Question

Dictionary vs Filter (Excel Advanced)


Forum|alt.badge.img+1

Hi! When filtering multiple times for each keyword in a spreadsheet, is it better to use the Excel Advanced package or a dictionary? I first used the dictionary package, but it seems impractical with over 100 keywords. Any suggestions for a better approach?

6 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 524 replies
  • February 4, 2025

So many answers… so little time.  😂

Your question is quite broad, so let’s focus a bit.

Let’s say you have an Excel spreadsheet and you only want the people in Sales. You can loop through all the rows, “filtering” the Sales people by using an IF action inside the loop.

If you need to re-filter, that’s where performance becomes a bit different. You could close and re-open the file, changing the IF for another word to filter upon, but that’s pretty slow.

If you’re talking fewer than thousands of records, you could read the Excel file into a data table. Repeatedly looping through a data table is still quite fast. The restriction here is memory.

There are many, many ways to solve this problem. Can you be a little more specific with your use case?


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 2 replies
  • February 4, 2025

I need to iterate through 100+ keywords, applying filters individually to aggregate their total values, then repeat the process for the remaining keywords. The values for each keyword are located in a specific column and may span multiple rows per keyword.


madhu subbegowda
Most Valuable Pathfinder
Forum|alt.badge.img+8

I would suggest to store excel data in a table variable and then loop through it as many times as you can. We had excel with thousands of records and it worked well.


jasthi bhaskar
Cadet | Tier 2
Forum|alt.badge.img+2

If you still feel it's a bit burdensome, you can apply the same logic using VBA and then invoke it in Automation360.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 2 replies
  • March 17, 2025

Besides delays and data cleanup, is there a way for the bot to read data tables faster?


madhu subbegowda
Most Valuable Pathfinder
Forum|alt.badge.img+8

If you want this to be working faster, i would recommend you to use excel as a Database. This is way faster and reliable.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings