Creating white spaces in excel cells - Problem with REPT function

Alexsander

New Member
Joined
Nov 25, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hey guys.

I need help with some problems I'm having using the REPT function.

I am preparing a spreadsheet, where there is a sequence of fields that will contain specific information and this information will be pasted into a notebook. Some of these fields must be blank, keeping the text string.

I tried to use the REPT function to insert the blank spaces, however when I copy the information to notepad there is a giant spacing (as in the picture) and then there is the amount of spaces that I inserted with the function and at the end another giant spacing.

How can I solve this problem? Are there any other alternatives so I can insert these blanks?
 

Attachments

  • Ev.png
    Ev.png
    3.3 KB · Views: 18

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Excel is adding a TAB between each column.

You have 365. Add a helper column at the end and use
Excel Formula:
=TEXTJOIN("",TRUE,A2:B2)
And copy that column to Notepad.

20211127 Text with spaces adding Tab.xlsx
ABC
1Column 1Column 2Combine
21test1 test
31test1test
4abab
Sheet1
Cell Formulas
RangeFormula
A2A2="1" &REPT(" ",20)
C2:C4C2=TEXTJOIN("",TRUE,A2:B2)


1637996682367.png
 
Upvote 0

Forum statistics

Threads
1,215,032
Messages
6,122,770
Members
449,095
Latest member
m_smith_solihull

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