SharePoint doesn't provide the out-of-the-box option to import data from Excel file to existing list. There is, however, an interesting workaround which is based on PowerAutomate.
If you want to put some data from Excel to new list using
Import Spreadsheet
There is, however, an interesting workaround which is based on PowerAutomate (formerly called MS Flow).
NOTE: There's also
addon which you can use. I learned about it after I finished this article, but I'm leaving it here anyway as it might be useful in some cases.Import Excel or CSV to List
Let's say that we have an existing list which we'd like to use for our leave request system. It contains 3 fields:
If you want to import the spreadsheet, you need to remember that Excel connector for PowerAutomate only supports data from the table. If you're not sure if your data is in the table, click on any cell and you should see additional tab
Design
If you're not seeing it, click Ctrl+t to create new table:
Now put the file in your OneDrive folder (you can also use your MS Group library or SharePoint) and you can start creating a flow.
We'll be using instant (manually trigered) flow:
We name it and choose
Manually trigger a flow
Next action is
List rows present in a table
We choose the file and proper table.
Then we add
Apply to each
Inside the block we use
Create item
SharePoint
For some of the fields, values might not be chooseable. This usually happens for types other than string (for
User/Group
Claims
We can workaround this using the expression:
item()?['PropertyName']
If we save and refresh we'll see that expression converted to the value similar to what we chosen for string-type fields:
Now we can 'test' the flow (be careful as it will create items on the list, so it's more 'test in production')
Source: SpiceworksIn top-right corner we choose 'Test' link and specify to perform trigger action manually:
We create manually-triggered flow so the wizard allows us to trigger it straight from the website. After we confirm the connectors being used:
We can click 'Continue':
Aaaaand it runs: