+ Reply to Thread
Results 1 to 3 of 3

How Do I Make A Cell Appear Empty When another Formula is in place?

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    1

    How Do I Make A Cell Appear Empty When another Formula is in place?

    I am using Excel to make usernames for an online system, but the providers of the names that need to go on the system don't always provide good quality text. As a result, in addition to using ampersands I have to put a Substitute function in order to remove spaces not only in between multi part names, but at the end of the names as well. This works well, but when it extends into empty cells (which have the formula in place) a small black dot dot appears on the left and then when we load the names on the system, these empty "dot" cells seem to try to come up as users. Is there any way of getting rid of this without having to delete the formula from the cell? (We have to input different groups and update them regularly, so want to avoid having to drag the formatting down everytime we do it)
    THis is the formula I am using - =SUBSTITUTE(E5," ","")&"."&SUBSTITUTE(F5," ","")

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How Do I Make A Cell Appear Empty When another Formula is in place?

    Hi,

    Have you tried the =TRIM(A1) function to remove trailing and preceding spaces?

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How Do I Make A Cell Appear Empty When another Formula is in place?

    Perhaps...

    =IF(AND(E5="",F5=""),"",SUBSTITUTE(E5," ","")&"."&SUBSTITUTE(F5," ","") )
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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