代码之家  ›  专栏  ›  技术社区  ›  ashleedawg

如何使用多行自定义数字格式缩小列宽?

  •  1
  • ashleedawg  · 技术社区  · 6 年前

    我发现了一个诀窍,但Excel不想完全合作…但也许有个解决办法…?

    我经常在“高行”上结束日期/时间(因为其他列是多行的):。

    …并且我想通过将日期/时间拆分为 2行来节省垂直空间,同时将其保留为a single numeric value for reasons of sorting,etc:。


    我意识到,这可以通过使用 custom number format ,其中一种方式来实现:

    method 1: on a keyboard with a numeric keypad:

    1. 选择带有该值的单元格。

    2. 点击 ctrl + 1 打开 数字格式 dialog

    3. 选择 custom category,然后在 type: textbox:。

    2 回复  |  直到 6 年前
        1
  •  1
  •   jblood94    6 年前

    1)转到“格式单元格”对话框中的“对齐”选项卡。 3)选择“环绕文字”。

    enter image description here

    Excel仍会将列自动调整为139像素,但您可以将列宽拖动到71像素,仍然可以看到这两行。

        2
  •  1
  •   Star    6 年前

    转到:右键单击单元格-->设置单元格格式-->对齐-->缩小到合适大小

    Right click on cell

    Click Shrink to Fit