Hi
I have a table where I need to replace values in a field based on the closest match of two other columns.
The attached workbook sets out the solution I am seeking
Allister
Hi
I have a table where I need to replace values in a field based on the closest match of two other columns.
The attached workbook sets out the solution I am seeking
Allister
Last edited by AllisterB; 07-27-2023 at 11:47 PM.
Please check the value of E13 (confirm the expected results it should be C instead of B) and tryFormula:Please Login or Register to view this content.
I Have updated the workbook
@HansDouwe
Last edited by AllisterB; 07-28-2023 at 01:21 AM.
Thanks,
I corrected the workbook also in Post #2.
There is also a solution.
Hi
Is There alos a Power Query Solution ?
Thanks
Sure, but I'll leave that to the Power Query experts.
I have less experience with that.
Last edited by HansDouwe; 07-28-2023 at 01:40 AM.
I would welcome a Power Query solution
So you have said and you will I am sure get one - but you will need to be patient. You should not be bumping a thread after only two hours - 24 hours is OK.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Assuming there is always a prior value for any -1 Key value, you can sort on key then date, then replace the -1 with null, then fill down:
Please Login or Register to view this content.
Rory
Thank You - a nice - non-PQ Solution
Last edited by AllisterB; 07-31-2023 at 12:04 AM.
Thank You Rory.
Your comment "Assuming there is always a prior value for any -1 Key value" got me thinking.
I have attached my solution which Uses Group By and then Table.FillUp Table.FillDown.
I first did this for the Key. Then I did the same thing for the Supervisor on the basis that a good predictor for where there is no prior key value is the Branch for the next instance of the same Supervisor Column.
Allister
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks