用空格填充单词以填充单元格 [英] Padding a word with spaces to fill a cell
本文介绍了用空格填充单词以填充单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在单元格中填充空格以确保其长度正确?
Is it possible to pad a cell with spaces to ensure that it is the correct length?
这是一个以 *
表示空格的示例.
Here's an example with *
representing spaces.
Input Output
----- ------
red red**
blue blue*
单词用空格填充,以确保单元格内容为5个字符长.
The words are padded with spaces to ensure the cell content is 5 characters long.
推荐答案
尝试一下:
= LEFT(A1&"*****",5)
我们要添加许多星星(*),然后从 left
个字符中切出5个字符.
We are adding lots of stars(*) then just cutting from left
5 characters.
这篇关于用空格填充单词以填充单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文