ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do I insert a variable amount of blank spaces in a formula? (https://www.excelbanter.com/excel-worksheet-functions/126092-how-do-i-insert-variable-amount-blank-spaces-formula.html)

Lucy4484

how do I insert a variable amount of blank spaces in a formula?
 
I am trying to insert a number of spaces into a cell depending on how many
characters I have in another cell. Does anyone have any idea how I would do
that?

Thanks

Dave Peterson

how do I insert a variable amount of blank spaces in a formula?
 
Maybe...

=rept(" ",len(a1))


Lucy4484 wrote:

I am trying to insert a number of spaces into a cell depending on how many
characters I have in another cell. Does anyone have any idea how I would do
that?

Thanks


--

Dave Peterson


All times are GMT +1. The time now is 01:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com