Forum Discussion
Janis_K1
Feb 21, 2023Copper Contributor
Searching for the right function.
Hello! Please tell me, which function should I use to automatically get data from the previous rows with the same direction?
- Feb 21, 2023
You may repeat formula in each column, e.g. in K
=XLOOKUP(D26&F26&G26, D:D&F:F&G:G, K:K)
or use in K
=XLOOKUP(D26&F26&G26, D:D&F:F&G:G, K:N)
but cells to the right shall be empty since the latest returns spill.
Janis_K1
Copper Contributor
Hi Sergei,
Wow! Thanks for your super-fast reply!🚀
It works!!👍👍
But how to "connect" this mechanism with columns: "K;L;M;N" so they would "update/copy" previous inputs too? 🤔
SergeiBaklan
Feb 21, 2023MVP
You may repeat formula in each column, e.g. in K
=XLOOKUP(D26&F26&G26, D:D&F:F&G:G, K:K)
or use in K
=XLOOKUP(D26&F26&G26, D:D&F:F&G:G, K:N)
but cells to the right shall be empty since the latest returns spill.
- Janis_K1Feb 21, 2023Copper ContributorThanks a lot!
I got it and already "upgraded" a bit for my everyday use. 🙂- SergeiBaklanFeb 21, 2023MVP
Janis_K1 , you are welcome.
As a comment, in general better to use not entire columns like K:K, but some ranges like $K$2:$K$1000, but all of them shall be of the same size. That's in case of performance issues.
- Janis_K1Feb 21, 2023Copper ContributorThis was my next question.=))
Thank you!