Dynamically update a sheet based on values received in another sheet (within same workbook) from a form

OC2PS

New Member
Joined
Jan 18, 2018
Messages
11
I am using Office 365. In order to collect info from forms in a live Excel sheet, I created a new Excel Online workbook/ file (basically within the browser, logged into Office 365, went to Excel and "Create New" which created an Excel file in OneDrive) and did `Insert > Forms` to create a new Microsoft Forms form.

The Microsoft Forms form is intended to collect information from users within my organization (i.e. sign in is required to fill up the form). The information collected is widget ratings.

Context:
A bunch of widgets are assigned to colleagues to test and rate. A specific widget (identified by `widget_id`) is always assigned to exactly 2 testers. Each tester can be assigned any number of widgets. Once a tester has rated a widget, they input their rating via the Microsoft Forms form mentioned above.

The info collected via the form is as following:

  • `email` of respondent (collected automatically).
  • `datetime` of response (collected automatically).
  • `widget_id` of the rated widget (selected by respondent from a dropdown).
  • `rating` of the widget determined by the respondent (numerical entry within a set range, e.g. 1 ... 100 )

So, in my Excel workbook's forms sheet, it appears as:
Let's say the Forms submissions sheet is called `Form 1`.
ABCD
emaildatewidget_idrating
jack@company.com2023-04-2399023665
mack@company.com2023-04-2399023675
iris@company.com2023-04-2399000350
jack@company.com2023-04-2499023545

I have another sheet `allocations` with 6 relevant columns which has information on which two testers have been allocated to test/rate each widget:
  • A widget ID
  • B email of tester 1 assigned to the widget
  • D widget rating by tester 1
  • E email of tester 2 assigned to the widget
  • G widget rating by tester 2
  • Columns C, F, and H-J are irrelevant for this issue

ABCDEFGHIJ
widget_idemail1email1thankedrating1email2email2thankedrating2actionsentdifferenceaverage
990235jack@company.com0mack@company.com00
990236mack@company.com0jack@company.com00
990231jack@company.com0iris@company.com00
990197iris@company.com0mack@company.com00
990003mack@company.com0iris@company.com00

What I want to happen

As various testers submit their forms, Excel should populate column D or G (as appropriate) of `allocations` sheet, depending on the widget id and tester email. In other words, I want Excel to copy over the ratings from the `Form 1` sheet to the appropriate place in the more understandable `allocations` sheet.

In other words,
the moment, the data row appears in `Form 1` sheet,
Excel should look for the `widget_id` from this row in `allocations` sheet.
Further, Excel should check whether the `email` from this row in `Form 1` sheet matches `email1` in `allocations` sheet or `email2` in `allocations` sheet in the row in which this `widget_id is found in `allocations`.
If it matches `email1` then copy the `rating` from this row in `allocations` sheet to `rating1` in `allocations` sheet, if it matches `email2` then copy the `rating` to `rating2`.

So, in our example `allocations` sheet would look like


ABCDEFGHIJ
widget_idemail1email1thankedrating1email2email2thankedrating2actionsentdifferenceaverage
990235jack@company.com045mack@company.com00
990236mack@company.com075jack@company.com0650
990231jack@company.com0iris@company.com00
990197iris@company.com0mack@company.com00
990003mack@company.com0iris@company.com0500
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top