spaces

  1. J

    Pivot table subtotals

    Hello, I got rid of subtotals in this pivot table, but how can I get those hierarchy titles and empty spaces to go away?
  2. E

    Sheet name without spaces have quotes around them- used VBA to create sheets and name based on cell value

    Hi all, I have a code that adds in n number of new worksheets and names it based on cell value. Eventually, I have a summary sheet that will perform lookups to respective sheets using indirect. The newly created sheet names do not have any spaces in them, but for some reason the references...
  3. P

    Regex: match all spaces except for those after an exact match of a single word or two words

    Hi I am trying to match all white spaces in a sentence, except for those after either a match on a particular word, or that particular word followed by another particular word. I'm trying to use either lookahead or lookbehind. I can match the space immediately preceding the particular word...
  4. M

    Remove Spaces

    Hi All, My data is supposed to look a certain way ( see below) I need to remove spaces between D, the ID # (for example DXH110817) and the last name Doe. I'm trying to find an efficient fast way of doing this since I have about 50 records in my data. Any suggestions? So right now, it...
  5. B

    Creating a block of string that centers itself with spaces

    I am trying to figure out some way to take a string and make sure its a certain number of characters (I would say width but that would be much more involved given characters and point sizes are so confusing!!!) and center it via spaces. For instance, if I have a string "cat" but I want it to...
  6. S

    VBA to remove spaces from specific part number string

    Hello, I am trying to create a macro that will remove spaces from a column, IF it starts with "3 464 xxx xxx". Our vendor has spaces in their part numbers, but our system does not use them. Externally, we have to keep the spaces, but for internal use I need to remove those spaces. I have...
  7. J

    Using paths and sheet names with spaces in vba.

    Hi all, I'm trying to use this argument (arg): 'T:\SUPERVISOR REPORTS\2018\[May 2018.xlsx]10-D!R7C2 like this: GetValue = ExecuteExcel4Macro(arg) BTW, arg is created like this: arg = "'" & path & "[" & file & "]" & sheet & "!" & Range(ref).Range("A1").Address(, , xlR1C1) (it was found...
  8. J

    VBA remove spaces in cells

    Is it possible to select a range of cells and run a macro. The macro should remove 2 spaces entered in the end of each selected cell.
  9. W

    Need Excel Formula - Removing trailing spaces that doesn't use clean or trim

    I am doing some data comparison/testing and need a way to remove trailing spaces from the end of each cell. The number of spaces at the end could vary depending on the data. Clean/TRIM is removing spaces in the middle that I must retain. I have also trying using SUBSTITUTE to replace but again...
  10. R

    Converting text amount to a number that excel sees as numbers and not text

    Hi there, I have copied a dataset from word to excel but now excel does not recognize the amounts as numbers so I cant do any calculations. The numbers appear as 3 258 124. I've tried to remove the spaces but excel cant find any spaces so it must be a special character. Please help. Thanks...
  11. M

    Adding Spaces Between Characters

    Hello all, I want to add spaces between the characters in the string. The macro should add space between each character.If already space is exist it should ignore and add only where space is required. The string is in last used row of H column. Thank you.
  12. M

    Removing Excess Spaces in a String

    Hello all, i want to remove more than one space between the contents in the string. The string is always in the last used cell of H column. The string contains both single and double spaces. The macro should delete the double space alone and leave the single space as it is. Please heads up...
  13. J

    Add %20 to file path with spaces using Application.ThisWorkbook.FullName

    Hey everyone! Was wondering if there was a way to get Application.ThisWorkbook.FullName to display spaces as %20? I am having an outlook email pop up and in the body it is making a link to the file. If the file has spaces in it though the link ceases to work correctly. I've read if you use %20...
  14. S

    VBA: Question

    Hello There, I'm learning a lot about VBA but I have a quick question. If a macro can be performed more than once on a given cell, will it be performed as many times as the rules which govern it allow? Or will it only make that initial run through and then have to be run again to get the rest...
  15. S

    Values with spaces

    I have a list of amount but it contained spaces before and after figures how can I get only numerical value. like 100,000 78,900 23,000
  16. N

    Reading through the spaces

    I have a CSV that is received from another department that I pull into my workbook. One cell contains fractions and the inch mark followed by 17-24 spaces. I'm trying to pull from that cell to indicate what file I need to look in for the information and I'm not sure how the pull the...
  17. B

    Remove all Non-Printable characters as well as Clean and Trim; leave name text intact with spaces

    I saw Rick Rothstein's code that removed Non-Printable Characters, and did a Clean and trim as well. Can it be modified to leave spaces in the middle alone? such as, if I have a column of names that may have leading or trailing spaces, or both...Like so: Alfred E. Newman John Paul Jones I'd...
  18. J

    Setting html Text Font in Email Body in VBA

    I have a VBA script in an excel file that will generate an email. My problem is setting the font in the email. This code works: strbody = "****** style=font-size:11pt;font-family:Arial>Hello.</BODY>" This code does not work: strbody = "****** style=font-size:11pt;font-family:Segoe UI...
  19. K

    Problem with spaces in a Power Query ?

    Hi, I am struggling with Power Query in Excel. I am trying to create a function to use in the spreadsheet. My spreadsheet contains column headers with spaces in and therefore my query contains the same. The problem seems to be that my query has spaces in there - if I change (Product name)...
  20. A

    searching when extra spaces exists in value

    I am using vba to search for searching for certain key words/phrases in excel spreadsheets. Sometimes a phrase may have extra spaces in between words i.e. "Forecast O&A $ per Unit" When I search i use "Forecast O&A $ per Unit" (only one space between each word). In my spreadsheet...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top