• 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.

split colum from text

neenuadril

New Member
I have a column like this below*showing two results ).I need to extract the text before the date .How can I do that? 1689604876660.png
Could you please suggest me a solution?
 
Cannot manipulate data in a picture. Please upload a sample file of your raw data and then show us for that data a mocked up solution.
 
It all depends on the Excel version; 365 solutions and traditional Excel have very little in common.
Assuming your data shows 2 data cells with line-feeds to display the lines, you might have something of the form
Code:
= LAMBDA(cell,
    LET(
      date, DROP(ISNUMBER(DATEVALUE(TEXTSPLIT(cell, " ", CHAR(10)))), -1, -1),
      text, DROP(TEXTSPLIT(cell,,CHAR(10)), 1),
      FILTER(text, date)
    )
  )(@data)

That is then changed to a named Lambda function and used within MAP.
Code:
= MAP(data, ExtractTopicλ)
1689672204995.png
 

Attachments

  • ExtractTopic.xlsx
    17.4 KB · Views: 5
Back
Top