+ Reply to Thread
Results 1 to 6 of 6

IF ISERROR and Replace formula

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Shropshire
    MS-Off Ver
    Excel version 2102
    Posts
    85

    IF ISERROR and Replace formula

    Column A Column B
    Postcode: XXXX =REPLACE(A1,1,FIND(": ",A1),"")


    In column B I am showing the XXXX, but when there is no data it it coming up with #VALUE!

    Is there anyway of not having the #Value! and having the box empty?

    Thanks

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF ISERROR and Replace formula

    Hi

    Use IFERROR.

    =IFERROR(REPLACE(A1,1,FIND(":",A1),""),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: IF ISERROR and Replace formula

    Try this -

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    11-17-2011
    Location
    Shropshire
    MS-Off Ver
    Excel version 2102
    Posts
    85

    Re: IF ISERROR and Replace formula

    Thanks for help and quick response - it works great. x

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF ISERROR and Replace formula

    You are welcome.

    Thanks for the feed back and also for the reb*

    Pls, note that also arlu 1201,formula, works OK(with one more parenthesis at the end)

    =if(A1="","",REPLACE(A1,1,FIND(": ",A1),""))

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: IF ISERROR and Replace formula

    Oops yeah, thanks Fotis.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1