cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Majingcth
Level: Powered On

Check if a value exist in excel then update row value

I tried a few flows but they failed

 

I have a table with 2 columns only as below. I am getting 2 variables from an email, which are Tran_No and Status.

 

My flow I would like to check if the variable Tran_No exist in the excel table. If yes, update the new Status to existing Status column.

 

Can someone help please?

 

Tran_NoStatus
12345In Progress
12346In Progress
12347In Progress

 

My flow:

image.pngimage.pngimage.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Check if a value exist in excel then update row value

Hi @Majingcth ,

 

Please refer to screenshot below to create the flow:

1.png2.png

 

The expression in the Condition as below:

length(body('Filter_array'))

The expression for the Transaction No column in the Update a row action as below:

item()?['Transaction No']

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Super User
Super User

Re: Check if a value exist in excel then update row value

Hi @Majingcth 

 

Please see this solution which I provided for another post.

 

https://powerusers.microsoft.com/t5/Building-Flows/Update-Row-Automatic-adding-numbers-in-the-same-r...

 

If you need any further help please let me know.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Majingcth
Level: Powered On

Re: Check if a value exist in excel then update row value

Hi @abm 

i studied your post and tried mine, but still fail.

 

I trigger by input a Tran_No = 12347 and Status = Completed, I expect to update excel for row with Tran_No = 12347 only. Can you figure out my issue?

 

My update flow:

image.pngimage.pngimage.png

Community Support Team
Community Support Team

Re: Check if a value exist in excel then update row value

Hi @Majingcth ,

 

Please refer to screenshot below to create the flow:

1.png2.png

 

The expression in the Condition as below:

length(body('Filter_array'))

The expression for the Transaction No column in the Update a row action as below:

item()?['Transaction No']

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Majingcth
Level: Powered On

Re: Check if a value exist in excel then update row value

@v-alzhan-msft ,

 

Great, I tried it, it works. Thanks.

 

However, 1 more question.

 

When there is a Tran_No found in the list, and there status is already 'Completed', if the new Status is 'In Progress', I would like to keep it as 'Completed' and not update 'In Progress' to the row, how can this be done?

Community Support Team
Community Support Team

Re: Check if a value exist in excel then update row value

Hi @Majingcth ,

 

If your asking problem has been solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

And if you have another question, please post the new questuion in the flow forum for other users to easily identify.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 88 members 5,280 guests
Please welcome our newest community members: