web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / insert row in excel fi...
Power Automate
Answered

insert row in excel file if it does not exist from forms

(0) ShareShare
ReportReport
Posted on by 11

Hi
I want, when a form is sent, power automaton must check whether Answers A & B & C exist in the excel file. If it does, it must not be added in the excel file. And if it does not exist, it must be added in the excel file

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    on at

    Hi @Sobenara ,

     

    Could you please share some some screenshots of your MS Forms and your table structure? That will make it much easier to assist.

     

    In addition, i have made a simple test for your reference.

     

    1. Here is my MS Forms and excel file.

    vyujincuimsft_1-1658818366423.png

    2. Here is my flow.

    ColumnName eq 'Value'
    length(outputs('List_rows_present_in_a_table')?['body/value'])

    vyujincuimsft_3-1658818646790.png

    vyujincuimsft_4-1658818777088.png

    Result Screenshot:

    vyujincuimsft_2-1658818424550.png

     

     

    Best Regards,

    Charlie Choi

  • Sobenara Profile Picture
    11 on at

    @v-yujincui-msft It almost works 100%, now I have a problem I get an extra row when there is a new bike number and an empty row when the bike number already exists

     

    ADRST.jpg

    Any idea? 🙂

  • v-yujincui-msft Profile Picture
    on at

    Hi @Sobenara ,

     

    Could you please share some screenshots of your flow setup? That will make it much easier to assist.

     

    Best Regards,
    Charlie Choi

  • Sobenara Profile Picture
    11 on at

    @v-yujincui-msft  ok thanks here is my flow setup

     

    Asat.jpg

     

    How do I check if item exists in multiple columns in Excel?

    How do I ensure I have unique values in 2 columns before submitting the new row from Forms? if the old row does not have the same value as the new one, the new one must be added to the excel file.

    Values I want are "BikeNumber" and "BikeProblems" so if the bike number does not have the same problem I want it added in the file.

     

    AGHJS.jpg

  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @Sobenara ,

     

    Do you need to compare two conditions? Add new row in excel table only if there is no same 'BikeNumber' and 'BikeProblems' in same row.

     

    1. Here is my MS Forms and excel file.

    vyujincuimsft_1-1659323621447.png

    2. Here is my Flow.

    length(body('Filter_array'))

    vyujincuimsft_6-1659324665574.png

    vyujincuimsft_5-1659324504434.png

     

    Result Screenshots:

    vyujincuimsft_0-1659323524299.png

    vyujincuimsft_2-1659323778091.png

    vyujincuimsft_3-1659324054012.png

     

     

    Best Regards,
    Charlie Choi

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard