在同一Excel单元格中使用不同的字体?(Use different fonts in same Excel cell?)

编程入门 行业动态 更新时间:2024-10-28 10:27:28
在同一Excel单元格中使用不同的字体?(Use different fonts in same Excel cell?)

有没有办法改变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

更多推荐

本文发布于:2023-08-07 15:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464925.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单元格   字体   在同一   cell   Excel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!