在同一个Excel单元格中使用不同的字体? [英] Use different fonts in same Excel cell?

查看:643
本文介绍了在同一个Excel单元格中使用不同的字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法改变excel单元格中特定文本的颜色和/或字体?也就是说,我希望单元格显示值的一部分是红色的,同一单元格的另一部分显示值是蓝色的(例如)。由于显示的值是按公式计算的,所以我需要某种格式化公式,它只应用公式中的内容。我似乎无法在文本中找到任何内容。

Is there any way to change the color and/or font of specific text within an excel cell? That is, I'd like one part of the cell's displayed value to be red and another part of the same cell's displayed value to be blue (as an example). Since the displayed values are being calculated as formulas, I'd need some sort of formatting formula that would apply only the stuff inside the formula. I can't seem to find anything in the text.

推荐答案

如果您想根据公式进行此操作,必须写一些VBA。参见这个例子

If you want to do this based on a formula, you will have to write some VBA. See this example

这篇关于在同一个Excel单元格中使用不同的字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆