• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Extract only text from given range

uday

Member
Hi,

I am trying to extract only text from column A,B,C,D.

i.e., for the first row, it should be Uday. I have attached excel file herewith.

Can someone please assist me?

Thanks
Uday
 

Attachments

  • Extract only text from given range.xlsx
    9.1 KB · Views: 17
Hi,

upload_2019-3-16_16-17-7.png

Maybe….................

In E2, copied down :

=MID(IF(ISNA(A2),"",", "&A2)&IF(ISNA(B2),"",", "&B2)&IF(ISNA(C2),"",", "&C2)&IF(ISNA(D2),"",", "&D2),3,99)

Regards
Bosco
 
Last edited:
Thanks for your reply. Can you please explain why you used 3 and 99 end of the mentioned formula?

Its working anyway.

Thanks
 
@uday ,
if you have 2019, then according to Microsoft it should work.

TEXTJOIN function

Excel for Office 365 Excel for Office 365 for Mac Excel 2019 Excel 2019 for Mac More...
The TEXTJOIN function combines the text from multiple ranges and/or strings, and includes a delimiter you specify between each text value that will be combined. If the delimiter is an empty text string, this function will effectively concatenate the ranges.

Note: This feature is available on Windows or Mac if you have Office 2019, or if you have an Office 365 subscription. If you are an Office 365 subscriber, make sure you have the latest version of Office.
 
I too used the TEXTJOIN() function but reversed the test by using ISTEXT()
= TEXTJOIN( ", ", TRUE, IF( ISTEXT(Title), Title, "" ) )
where 'Title' is a relative reference to the current row of titles.
For me this took the form
=Table1[@[Title1]:[Title4]]
 

Attachments

  • Extract only text from given range (PB).xlsx
    12.8 KB · Views: 8
Back
Top