Share via

Excel Formula issue

Anonymous
2024-11-05T13:16:16+00:00

Hi ,

i am using excel and downloaded data but need to seperate the year into a new column

FIR-2024-11-04-GJ-01:43:51 so this must return 2024
Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Ashish Mathur 102K Reputation points Volunteer Moderator
2024-11-06T06:33:00+00:00

Hi,

Replace the comma with a semi-colon.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-11-06T05:16:20+00:00

    Hi, Thanks but mines give me this error ,please assist

    Was this answer helpful?

    0 comments No comments
  2. Ashish Mathur 102K Reputation points Volunteer Moderator
    2024-11-05T23:39:19+00:00

    Hi,

    In cell B2, enter this formula

    =CHOOSECOLS(TEXTSPLIT(A2,"-"),2)

    Hope this helps.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-11-05T13:34:11+00:00

    Dear respected M1DL,

    Good day! Thank you for posting to Microsoft Community. We are happy to help you.

    As per your description,

    =MID(A1, FIND("-", A1) + 1, 4)

    If there is any misunderstanding, I apologize and please feel free to post back to us with more detailed information for better understanding and guiding you further.

    Please understand that our initial reply may not always immediately resolve the issue. However, with your help and more detailed information, we can work together to find a solution.

    I'm sorry and I apologize for that.

    Appreciate your patience and understanding and thank you for your time and cooperation.

    Sincerely,

    Waqas Muhammad

    Was this answer helpful?

    0 comments No comments
  4. HansV 462.6K Reputation points
    2024-11-05T13:20:18+00:00

    With such a text in A2:

    =INDEX(TEXTSPLIT(A2, "-"), 2)

    will return 2024 as a text value. If you prefer it as a number value:

    =--INDEX(TEXTSPLIT(A2, "-"), 2)

    Was this answer helpful?

    0 comments No comments