Extraction of date from Contents of text

Mubeen Raza 20 Reputation points
2024-08-06T14:54:33.17+00:00

I have data in a certain cell in number format i.e. [0025092-08-24]. I just want to extract date [August 2024] in other cell. What formula will work?

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,734 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,190 questions
0 comments No comments
{count} votes

Accepted answer
  1. Muhammad Ibraheem Ishtiaq 155 Reputation points
    2024-08-06T16:07:31.67+00:00

    To extract the date in the format "August 2024" from a cell containing data like "0025092-08-24", you can use the following formula in Excel:

    Assuming the original data is in cell A1:

    Extract the Year and Month:

    excelCopy code
    =TEXT(DATE(RIGHT(A1, 4), MID(A1, 6, 2), 1), "mmmm yyyy")
    

    Explanation:

    • RIGHT(A1, 4) extracts the year from the last 4 characters.
      • MID(A1, 6, 2) extracts the month from the characters starting at position 6 with length 2.
        • DATE function creates a date using the extracted year and month, with the day set to 1.
          • TEXT function formats the date as "mmmm yyyy", which gives the full month name and year.

    This formula will convert "0025092-08-24" into "August 2024".
    I hope it will work...


1 additional answer

Sort by: Most helpful
  1. Mubeen Raza 20 Reputation points
    2024-08-08T06:22:56.81+00:00

    #VALUE! Problem

    0 comments No comments

Your answer

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