+ Reply to Thread
Results 1 to 4 of 4

Delete random space at the beginning of a cell before values

  1. #1
    Forum Contributor
    Join Date
    06-07-2018
    Location
    Newcastle Upon Tyne, England
    MS-Off Ver
    365
    Posts
    143

    Delete random space at the beginning of a cell before values

    Hello,

    Due to a glitch in a system with a daily export, some values randomly have a space before the first letter which is giving my formulas some trouble.

    Is there any code I could put on a macro button which I can then run once the export has been pasted over to my workbook, to tell that column there should not be a space before any value/character?

    Thanks
    Last edited by Pepe Le Mokko; 03-31-2020 at 08:47 AM. Reason: Moving to proper subforum

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Macro to delete random space at the beginning of a cell before values

    Perhaps use the TRIM function in your formulas?

  3. #3
    Forum Contributor
    Join Date
    06-07-2018
    Location
    Newcastle Upon Tyne, England
    MS-Off Ver
    365
    Posts
    143

    Re: Macro to delete random space at the beginning of a cell before values

    I've not seen those before - let me look into it - thanks!

  4. #4
    Forum Contributor
    Join Date
    06-07-2018
    Location
    Newcastle Upon Tyne, England
    MS-Off Ver
    365
    Posts
    143

    Re: Macro to delete random space at the beginning of a cell before values

    Worked perfectly and was so simple to use - thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. delete first space in a cell
    By annux08 in forum Excel General
    Replies: 1
    Last Post: 07-07-2015, 07:01 AM
  2. [SOLVED] Removing random amount of values after the first space from right
    By chriskay in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-15-2014, 08:47 PM
  3. Excel 2007 : How to delete space at the beginning of a cell
    By HR_Recruiter in forum Excel General
    Replies: 7
    Last Post: 09-28-2011, 09:11 AM
  4. Macro to generate random cell values by pct
    By rbpd5015 in forum Excel General
    Replies: 4
    Last Post: 09-02-2010, 03:32 PM
  5. delete space in cell
    By howardjo in forum Excel General
    Replies: 3
    Last Post: 09-25-2007, 04:55 AM
  6. How do I remove a blanck space from the beginning of a formula?
    By kan2953 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2005, 01:38 PM
  7. Macro to delete space in front of date
    By Neutron1871 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-29-2005, 07:06 PM

Tags for this Thread

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