How to do calculation from excel sheet using my copilot bot ?

Kuldeep Y 41 Reputation points
2024-05-31T09:49:28.6866667+00:00

Hi,

I have created a new bot in copilot studio, and I have a spread sheet with data of my whare items and items details such as price , No, etc. Now I want to query from my bot to fetch this data and do calculations over the price, month of sale etc, but it is now working correctly even it reading data in wrong way

Microsoft Copilot Microsoft 365 Copilot Development
Microsoft Copilot Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Afifa Shaikh - MFST 5 Reputation points Microsoft External Staff
    2024-08-13T07:58:06.2133333+00:00

    Ans: To enable your bot to query the spreadsheet and perform calculations, you'll need to follow these steps:

    Connect the Spreadsheet to Your Bot: Ensure that your spreadsheet is accessible to your bot. You might need to upload it to a cloud storage service like OneDrive or SharePoint and provide the necessary permissions.

    Set Up Data Queries: Use the bot's capabilities to query the data from the spreadsheet. You can write scripts or use built-in functions to fetch the required data. For example, you can use formulas or functions to calculate the total price, monthly sales, etc.

    Perform Calculations: Once you have the data, you can perform various calculations. For instance, you can sum up the prices, calculate averages, or analyze sales trends over different months.

    Integrate with Bot Responses: Make sure your bot can respond with the calculated data. You can format the responses to provide clear and concise information to the users.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.