Forum Discussion

Tyler1885's avatar
Tyler1885
Copper Contributor
Nov 14, 2024
Solved

Copilot in excel - sort/format/highlight error

I am a Copilot Pro subcsriber. I am doing the following exercise from Microsoft learn.(Format, sort, filter, and highlight data using Microsoft 365 Copilot in Excel - Training | Microsoft Learn)

format,sort,filter and highlight data. I am using the exact file from Microsoft site (downloaded) I am using the exact prompt from microsoft suggestion. however I am getting the following messages from copilot

  1. message:

Sure! Looking at A1:E8, here's 1 conditional formatting rule to review and apply:

  • Cell value less than 500: Apply the following to cells in the column ''Budget''
    • Fill color: yellow
    • Font color: black
    AaBbCc

apply button is disablead

 

2. message:

I'm not able to do that. What else can I do for you?

what should I need to do?

  • Mks_1973's avatar
    Mks_1973
    Nov 14, 2024

    Limited Access to Copilot Features in Your Account

    Cause: Not all Copilot features are available across all versions or regions, even if you're a Copilot Pro subscriber. This can lead to certain options, like "Apply," being disabled.
    Solution:
    Make sure you have the latest version of Office 365 installed.
    Verify if your subscription supports full Copilot capabilities in Excel. Sometimes, features roll out gradually, and you may not have full access yet.
    Contact Microsoft support to check if there are any feature restrictions on your account.
    Data Selection Conflicts

    Cause: The Copilot model may not be able to process the formatting rules because of how the data is structured or selected.
    Solution:
    Manually select the range A1
    in your Excel worksheet before prompting Copilot again.
    Make sure that the data is formatted correctly (e.g., no merged cells that could prevent correct formatting).
    Prompt Compatibility Issues

    Cause: Sometimes, prompts may not be correctly interpreted, leading to limitations in execution, such as the "I'm not able to do that" message.
    Solution:
    Rephrase the prompt to make it more explicit. Instead of just asking Copilot to format data, specify exactly what formatting you need for specific columns.
    Example: "Highlight cells in column B where the value is less than 500 and apply yellow fill with black text."
    Compatibility Between Web and Desktop Apps

    Cause: There are often slight feature discrepancies between the web version and the desktop version of Excel.
    Solution:
    Ensure you use the desktop version of Excel for full compatibility when using advanced features like Copilot.
    Make sure you are using the latest updates for Microsoft 365. Sometimes compatibility bugs are fixed in the latest updates.
    File Type or Macro Settings

    Cause: If the file you’re working with is in an older format (like .xls) or contains macros, Copilot might not be able to handle it effectively.
    Solution:
    Save the file as a modern Excel workbook (.xlsx) and disable any macros if present.
    Ensure the file has no protection settings (e.g., password protection, restricted editing) that could prevent Copilot from making changes.
    Regional Settings and Language Conflicts

    Cause: The regional settings for formatting (like decimal separators, currency symbols) could differ from the ones used in the Copilot prompt.
    Solution:
    Ensure the regional settings on your system match those expected by the exercise prompt.
    You can modify regional settings in Excel Options to align with Copilot's formatting expectations.
    Temporary System Glitch

    Cause: Sometimes, Copilot might fail to perform a task due to a temporary glitch or network connectivity issue.
    Solution:
    Close Excel completely and reopen the file.
    Restart your PC and retry.
    Ensure you have a stable internet connection, as Copilot relies on cloud capabilities to process prompts.
    Permissions Issue in Excel

    Cause: The apply button being disabled could suggest there is an issue with permissions or the operation being blocked.
    Solution:
    Check the trust center settings:
    Go to File > Options > Trust Center > Trust Center Settings.
    Ensure that settings allow macros and external content if the workbook has these dependencies.
    Check if there are protected cells or ranges that may block Copilot from applying changes.
    Test with Another File

    Cause: The specific file downloaded may have inconsistencies or errors that are causing Copilot to misbehave.
    Solution:
    Try creating a new Excel workbook with the same kind of data but from scratch.

    Apply the same prompt to the newly created data to see if Copilot behaves differently.

    Alternative Workaround: If Copilot is still not applying the changes correctly, you can try to manually implement the formatting rules as follows:

    Conditional Formatting Manually:
    Select the range A1...

    Go to the Home tab, click Conditional Formatting, and choose New Rule.

    Choose "Format cells that contain", set the criteria as less than 500, and set the format (e.g., yellow fill, black font).

    You could also automate the process using a VBA macro:

    Sub ApplyConditionalFormatting()
        Dim rng As Range
        Set rng = Range("B2:B8") ' Assuming column B contains "Budget" values
        rng.FormatConditions.Add Type:=xlCellValue, Operator:=xlLess, Formula1:="500"
        rng.FormatConditions(rng.FormatConditions.Count).SetFirstPriority
        With rng.FormatConditions(1).Interior
            .PatternColorIndex = xlAutomatic
            .Color = RGB(255, 255, 0) ' Yellow fill
        End With
        With rng.FormatConditions(1).Font
            .Color = RGB(0, 0, 0) ' Black font
        End With
    End Sub

    This code will apply a formatting rule to highlight cells in column B where the value is less than 500.

  • I'm in the exact same situation, and can't figured out why. Tried on Excel (web) or desktop app, and same thing happens... Custom prompt or out-of-the-box one, same thing.

    • Mks_1973's avatar
      Mks_1973
      Iron Contributor

      Limited Access to Copilot Features in Your Account

      Cause: Not all Copilot features are available across all versions or regions, even if you're a Copilot Pro subscriber. This can lead to certain options, like "Apply," being disabled.
      Solution:
      Make sure you have the latest version of Office 365 installed.
      Verify if your subscription supports full Copilot capabilities in Excel. Sometimes, features roll out gradually, and you may not have full access yet.
      Contact Microsoft support to check if there are any feature restrictions on your account.
      Data Selection Conflicts

      Cause: The Copilot model may not be able to process the formatting rules because of how the data is structured or selected.
      Solution:
      Manually select the range A1
      in your Excel worksheet before prompting Copilot again.
      Make sure that the data is formatted correctly (e.g., no merged cells that could prevent correct formatting).
      Prompt Compatibility Issues

      Cause: Sometimes, prompts may not be correctly interpreted, leading to limitations in execution, such as the "I'm not able to do that" message.
      Solution:
      Rephrase the prompt to make it more explicit. Instead of just asking Copilot to format data, specify exactly what formatting you need for specific columns.
      Example: "Highlight cells in column B where the value is less than 500 and apply yellow fill with black text."
      Compatibility Between Web and Desktop Apps

      Cause: There are often slight feature discrepancies between the web version and the desktop version of Excel.
      Solution:
      Ensure you use the desktop version of Excel for full compatibility when using advanced features like Copilot.
      Make sure you are using the latest updates for Microsoft 365. Sometimes compatibility bugs are fixed in the latest updates.
      File Type or Macro Settings

      Cause: If the file you’re working with is in an older format (like .xls) or contains macros, Copilot might not be able to handle it effectively.
      Solution:
      Save the file as a modern Excel workbook (.xlsx) and disable any macros if present.
      Ensure the file has no protection settings (e.g., password protection, restricted editing) that could prevent Copilot from making changes.
      Regional Settings and Language Conflicts

      Cause: The regional settings for formatting (like decimal separators, currency symbols) could differ from the ones used in the Copilot prompt.
      Solution:
      Ensure the regional settings on your system match those expected by the exercise prompt.
      You can modify regional settings in Excel Options to align with Copilot's formatting expectations.
      Temporary System Glitch

      Cause: Sometimes, Copilot might fail to perform a task due to a temporary glitch or network connectivity issue.
      Solution:
      Close Excel completely and reopen the file.
      Restart your PC and retry.
      Ensure you have a stable internet connection, as Copilot relies on cloud capabilities to process prompts.
      Permissions Issue in Excel

      Cause: The apply button being disabled could suggest there is an issue with permissions or the operation being blocked.
      Solution:
      Check the trust center settings:
      Go to File > Options > Trust Center > Trust Center Settings.
      Ensure that settings allow macros and external content if the workbook has these dependencies.
      Check if there are protected cells or ranges that may block Copilot from applying changes.
      Test with Another File

      Cause: The specific file downloaded may have inconsistencies or errors that are causing Copilot to misbehave.
      Solution:
      Try creating a new Excel workbook with the same kind of data but from scratch.

      Apply the same prompt to the newly created data to see if Copilot behaves differently.

      Alternative Workaround: If Copilot is still not applying the changes correctly, you can try to manually implement the formatting rules as follows:

      Conditional Formatting Manually:
      Select the range A1...

      Go to the Home tab, click Conditional Formatting, and choose New Rule.

      Choose "Format cells that contain", set the criteria as less than 500, and set the format (e.g., yellow fill, black font).

      You could also automate the process using a VBA macro:

      Sub ApplyConditionalFormatting()
          Dim rng As Range
          Set rng = Range("B2:B8") ' Assuming column B contains "Budget" values
          rng.FormatConditions.Add Type:=xlCellValue, Operator:=xlLess, Formula1:="500"
          rng.FormatConditions(rng.FormatConditions.Count).SetFirstPriority
          With rng.FormatConditions(1).Interior
              .PatternColorIndex = xlAutomatic
              .Color = RGB(255, 255, 0) ' Yellow fill
          End With
          With rng.FormatConditions(1).Font
              .Color = RGB(0, 0, 0) ' Black font
          End With
      End Sub

      This code will apply a formatting rule to highlight cells in column B where the value is less than 500.

Resources