copying the value of a cell between column E and column U to column X

Focakdanger 0 Reputation points
2026-11-26T12:25:16.6766667+00:00

Good evening, I would need your kind help. I have an excel sheet of about 100000 rows.

I state that I use office 2019 plus

From column E to column U, I only have one cell filled in for each row.

The value of this cell should be copied to column X to the corresponding row.

Can someone kindly help me with a formula or macro?

Thank you all

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Liora 4,020 Reputation points Independent Advisor
    2026-11-26T12:55:07.9833333+00:00

    Dear @Focakdanger,

    Since each row contains only one populated cell between columns E and U, a formula may be the simplest solution.

    Assuming your data starts in row 2, enter the following formula in X2:

    =LOOKUP(2,1/(E2:U2<>""),E2:U2)
    

     

    Then fill the formula down through all rows.

    This formula returns the non-empty value found between columns E and U for the corresponding row and places it in column X.

    With approximately 100,000 rows, I would recommend testing the formula on a small sample first and then filling it down for the full dataset.

    I hope this information helps point you in the right direction.

    Warm regards,  


    If the answer is helpful, please select "Yes, accept answer". If you have any questions or new updates, please feel free to comment below. 

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.