Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

How to identify the color code from excel using power automate desktop

(1) ShareShare
ReportReport
Posted on by 10

Hi,

Is it possible to identify the color code from the excel data and filter by using those colour codes.

for ex: if its highlighted in yellow then I need to extract only yellow highlighted data from excel

  • Bruno_CR Profile Picture
    Bruno_CR 16 on at
    Re: How to identify the color code from excel using power automate desktop

    Hi @Shanmugapriya09 ,

    To identify the color code from an Excel file using only Power Automate Desktop (PAD), you can try the following workaround, as there is no direct action to read cell colors in PAD:

    1. Set Up Your Excel File: Ensure that your Excel file has a table with the color-coded cells you want to identify.
    2. Launch Excel: Use the ‘Launch Excel’ action to open your Excel file.
    3. Read Range: Use the ‘Read from Excel Worksheet’ action to read the data into a DataTable variable.
    4. Use a Helper Column: In Excel, set up a helper column that uses a formula to return the color index of the adjacent cells. For example, you could use a formula like =CELL("color", A1) where A1 is the cell you want to check.
    5. Read Helper Column: Use PAD to read the values from this helper column, which will give you the color index of each cell.
    6. Filter Data: With the color indices, you can filter your data accordingly within PAD.

    Remember, this method requires you to set up the helper column manually in Excel, as PAD cannot directly read the color of a cell. If you need to identify and work with cell colors frequently, consider using Excel’s built-in features like conditional formatting or VBA macros, which can be triggered from PAD using the ‘Run Excel Macro’ action.

    For more complex tasks or automation, you might need to resort to scripting or using additional tools that can handle such operations directly. However, if you’re looking to stay within the capabilities of PAD, the above steps provide a feasible approach.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard