简体   繁体   中英

How do I change text in a cell based on another cell?

I have a cell in Excel (lets say A1) that containes the text "+ 0.2% of foo"... I'd like to be able to change the percentage value in that cell based on text in another cell (for example, C1). Like, if i change C1 to 0.6%, then A1 would change to "+ 0.6% of foo".

I've found bunches of stuff on changing colors based on cells and things, but changing text blocks inside cells seems to be harder to find.

使用&连接

="+ " & TEXT(C1,"0.0%") & " of foo"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM