1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. 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...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Excel formula

Discussion in 'Ask an Excel Question' started by muna, Feb 12, 2018.

  1. muna

    muna Member

    Messages:
    49
    Current formula is...

    =RIGHT(B3,LEN(B3)-SEARCH(“-“,B3)-1)

    I want the formula to return a blank result if there is no hypen (-) in cell B3.
  2. John Jairo V

    John Jairo V Well-Known Member

    Messages:
    438
    Hi, @muna!

    You can use:
    =IFERROR(RIGHT(B3,LEN(B3)-SEARCH("-",B3)-1),"")

    Blessings!
  3. muna

    muna Member

    Messages:
    49
    Thank you!

    Worked perfectly.
  4. muna

    muna Member

    Messages:
    49
    I also have a formula...

    =RIGHT(C3,LEN(C3)-SEARCH(“:”,C3))

    Is there anyway to capture anything after the : but ignore anything before the -
    Last edited: Feb 12, 2018
  5. John Jairo V

    John Jairo V Well-Known Member

    Messages:
    438
    Hi, again!

    Upload a sample file with the data you have, and the result that you looking for. Blessings!

Share This Page