Forum Discussion
Updating excel database with values from another sheet
- Aug 07, 2025
Hi all, I did end up finding a solution to the above problem using power query and the merge queries based on the ID. I then created new columns from the merge and used code along these lines: if [Updates.Age] = null then [Age] else [Updates.Age] where [Age] were the original dataset values and [Updates.Age] were the updating values. That way if there was no value in the updating dataset it would default to the original. I then deleted the original and updating columns and renamed the new columns to the original attribute names. So far it seems to be working well. Thank you all for your comments though, I really appreciate it!
The very basic Power Query M code in the attached file returns the expected result if i correctly understand what you want to do. In the file you can add data to the blue dynamic tables. Then you can click in any cell of the green table and right-click with the mouse and select refresh to update the green result table.
- jgrimAug 07, 2025Copper Contributor
Hi, I think this solution ended up being very close to what I found in the end. Thank you for the suggestion and help!