Generate next available project number in a sequence

Anonymous
2024-03-13T13:34:14+00:00

Hi,

I'm hoping someone can help me with a formula. I want to generate the next available number in the sequence with the last four digits being the year. Thank You!

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
{count} votes
Answer accepted by question author
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2024-03-13T13:49:51+00:00

    Assuming that column E is completely empty below the last RTO #:

    =LET(last, LOOKUP("z", E:E), seq, LEFT(last, 3), y, RIGHT(last, 4), yy, TEXT(TODAY(), "yyyy"), newseq, IF(y=yy, TEXT(seq+1, "000"), "001"), newseq&"-"&yy)

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-03-13T13:59:28+00:00

    Dear respected B M_0312,

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

    As per your description, try this:

    =LET(last, LOOKUP(2, 1/(A:A<>""), A:A), seq, LEFT(last, FIND("-", last) - 1), y, RIGHT(last, 4), yy, TEXT(TODAY(), "yyyy"),newseq, IF(y=yy, TEXT(VALUE(seq) + 1, "000"), "001"), CONCAT(newseq, "-", yy))

    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.

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

    Sincerely,

    Waqas Muhammad

    0 comments No comments
  2. Anonymous
    2024-03-14T12:28:30+00:00

    Hi respected B M_0312,

    I'm writing a follow up this case, and I haven’t received any information from you, may I know have you checked reply? Feel free to post back if you need further assistance.

    Have a good day and stay safe 😊

    Sincerely,

    Waqas Muhammad

    0 comments No comments