Oct 31 2023 08:16 AM
Hello,
I have table 1 with Xvalue+ date when collected and table 2 with various Yvalues + date when been collected. I want to get a third table with a list of all single dates (+ Yvalue) that is the closest in time with the date of X value. The time difference date(X) - date(Y) should be of 45 days or lower.
The result should look like this:
I have 150 ids with over 30 dates each and I would like to find a quick way to filter it in a clear and neat way.
Thank you in advance!
Oct 31 2023 09:43 AM
An alternative could be this formula which returns the intended result in Excel for the web or Office 365.
Oct 31 2023 10:15 AM
With Power Query you can add data to the blue dynamic tables (table1 and table2). 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.
The data layout in the screenshot and in the attached file is for illustration. The green result table can stay to the right of the blue tables or it can be placed in another worksheet.
Nov 01 2023 01:57 AM
@OliverScheurichthank you for you answer!
I have tried multiple times but get each time this message of error. Do you know what the cause could be?
Nov 01 2023 03:01 AM
From the screenshot i can't tell why it doesn't work. You can open my attached file and the formula is translated into your language and the formula returns the intended result. This time i've used your tablenames Tabell1 and Tabell2.