Share via

Formula Help in Excel

Anonymous
2024-11-13T18:36:51+00:00

I need to convert a column of values that are listed with things like "10+ years", <1 year", and "5 years". What formula can I use to convert this. The "10+ years" need to convert to 10 and the "<1 year" needs to convert to 0.5, and all the others I just need the number.

Microsoft 365 and Office | Excel | For home | 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

1 answer

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2024-11-13T19:57:30+00:00

    With a value in A2:

    =IFERROR(LET(s, SEQUENCE(LEN(A2)), m, ISNUMBER(--LEFT(A2, s)), --LEFT(A2, MAX(m*s))), 0.5)

    Fill down.

    Was this answer helpful?

    0 comments No comments