Survey analysis bot

Hey I am doing a project where I hve to create a survey analysis bot using UiPath studio can anyone pls help me with the project can u tell me the Entire workflow and activities i have to choose along with all the necessary steps it’s fine if it’s simple also i just want to complete this pls help

Hi @Shah_Rukh

1. Read Survey Data from Excel

Activity: Excel Application Scope

  • Workbook Path β†’ "C:\SurveyData.xlsx"
    • Activity inside: Read Range
      • Sheet Name β†’ "Sheet1"
      • Range β†’ "" (Read entire sheet)
      • Output: dt_SurveyData (DataTable)

2. Process Survey Responses

Activity: For Each Row in Data Table

  • DataTable β†’ dt_SurveyData
  • Output Row Variable β†’ row

Inside For Each Row:

  • Activity: Assign

    • Variable: response = row("Feedback").ToString
  • Activity: If

    • Condition: response.Contains("Good")
    • Then: Assign β†’ countGood = countGood + 1
    • Else: Assign β†’ countBad = countBad + 1

(Declare countGood and countBad as Integer variables, initialized to 0.)


3. Write Analysis Results to Excel

Activity: Excel Application Scope

  • Workbook Path β†’ "C:\SurveyResults.xlsx"
    • Activity inside: Write Range
      • Sheet Name β†’ "Analysis"
      • DataTable β†’ dt_Results

(Create dt_Results using Build Data Table and add rows using Add Data Row.)


4. Display Summary Results

Activity: Message Box or log message

  • Text:
    "Good Responses: " + countGood.ToString + " 
    Bad Responses: " + countBad.ToString
    

If you found helpful mark as a solution.
Happy Automation

1 Like


Sir I’m getting the output as 0 only could you pls help me out

Sure @Shah_Rukh

Please check your inbox. I seperately send the reson and solution .

1 Like

Thank you so much @prashant1603765

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.