cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Vlookup the responses from a form and add a row to excel

I am using a Form to collect responses. Now I am able to add it to excel online using trigger as : whenever response is submitted -> apply to each -> add a row . 
The problem is I want to use a mapping file to map the responses of various questions to another value. For example if I get a response as Yes. I want to enter the value as Stargazer. Unfortunately i cannot change the form.
How can I map the responses to different questions using 1 (or more) tables in excel (or a mapping list on sharepoint), before I add a row in my excel.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @sushant_mishra :

Do you want to find the corresponding value of each answer in the mapping file, and then use these values to add new rows?

My method is to traverse the mapping file, compare each answer in the process, and then save the matching results in different variables (each question corresponds to a variable). Then use these variables to add row.I've made a test for your reference:

1\My form

1.JPG

2\My flow

I created the variable "mappingfile" as the mapping file

2.JPG

 

3.JPG

 

4.JPG

Reference expression:

  1. items('Apply_to_each')['Question']
  2. items('Apply_to_each')['Value']
  3. items('Apply_to_each')['Question']
  4. items('Apply_to_each')['Value']

The Result: 

5.JPG

 Best Regards,

Bof

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @sushant_mishra :

Do you want to find the corresponding value of each answer in the mapping file, and then use these values to add new rows?

My method is to traverse the mapping file, compare each answer in the process, and then save the matching results in different variables (each question corresponds to a variable). Then use these variables to add row.I've made a test for your reference:

1\My form

1.JPG

2\My flow

I created the variable "mappingfile" as the mapping file

2.JPG

 

3.JPG

 

4.JPG

Reference expression:

  1. items('Apply_to_each')['Question']
  2. items('Apply_to_each')['Value']
  3. items('Apply_to_each')['Question']
  4. items('Apply_to_each')['Value']

The Result: 

5.JPG

 Best Regards,

Bof

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (33,747)