Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to put the values in different columns into one column in Excel?

I have 140 column that for each row only one of them have a string value and the rest are blank. What I need is to create one column to have all the values and for all rows. here is the example:

Here is what I have

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Here is what I need

>Solution :

If one has it we can use TEXTJOIN which can ignore empty cells:

=TEXTJOIN("",TRUE,B2:E2)

enter image description here

Or without we can use INDEX/MATCH with wildcard:

=INDEX(B2:E2,MATCH("*",B2:E2,0))

enter image description here

Or even HLOOKUP:

=HLOOKUP("*",B2:E2,1,FALSE)

enter image description here

Or LOOKUP:

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

enter image description here

Or XLOOKUP:

=XLOOKUP("*",B2:E2,B2:E2,"",2)

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading