Skip to main content
Cadet | Tier 2
February 4, 2025
Question

Dictionary vs Filter (Excel Advanced)

  • February 4, 2025
  • 6 replies
  • 181 views

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
Automation Anywhere Team
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?

Cadet | Tier 2
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
Most Valuable Pathfinder
February 6, 2025

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.

Madhu Kumar T S || https://www.linkedin.com/in/madhukumarts/
jasthi bhaskar
Navigator | Tier 3
Navigator | Tier 3
February 7, 2025

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

---- https://www.linkedin.com/in/bhaskar-jasthi-172475188/
Cadet | Tier 2
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
Most Valuable Pathfinder
March 18, 2025

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

Madhu Kumar T S || https://www.linkedin.com/in/madhukumarts/