A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hello Soul,
Thank you for your detailed explanation
Based on how I understand your requirement, there is a simple way you can try using lookup formulas. It may not be a one-click solution, but it’s a practical approach you can refer to for handling this kind of scenario.
Suppose:
- In Sheet1, you store your source data (Column A, B, C) as shown
- In Sheet2, you have Column A filled with IDs, and Columns B and C are the ones you want to update
In Sheet2, you can create two helper columns, for example: Column D and Column E
In cell D2 (used to update Column B), enter the formula: =XLOOKUP(A2,Sheet1!$A:$A,Sheet1!$B:$B,B2)
This works as follows: It searches for the value in A2 within Column A of Sheet1. If a match is found, it returns the corresponding value from Column B in Sheet1. If no match is found, it keeps the original value from B2 in Sheet2.
In cell E2, enter: =XLOOKUP(A2,Sheet1!$A:$A,Sheet1!$C:$C,C2)
Then drag both formulas down for all rows in your dataset.
After that, you can:
- Select all values in columns D and E
- Press Ctrl + C
- Right-click on cell B2
- Choose Paste as Values
This will overwrite Columns B and C with the updated values where matches are found.
Just a small note on this approach:
I don’t place the formula directly into Columns B and C because it would either create a circular reference error (the formula would depend on the same cell it is updating), or it would immediately overwrite the existing values before they can be used as a fallback.
That’s why I use helper columns first, to safely calculate the updated results while still keeping the original data intact. Once everything looks correct, then paste the values back to overwrite the original columns.
If this approach does not fully match what you are trying to achieve, please feel free to share a bit more detail (or a sample of your data structure), and I’ll be happy to adjust the solution accordingly.
Best regards,
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.