Formatting Half of the Cell data in formula

gnaga

Well-known Member
Joined
Jul 9, 2002
Messages
748
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Hi,

I have a formula in Cell C1 "=Text(A1,"0.00") & $B$1"

I have a number in A1 and a Text in B1

While displaying this in C1, I would like to have bigger font for the number and smaller font for the text in order to accommodate within the width of cell C1.

How to achieve this task? Kindly help me.

TIA
GNAGA
 
You are correct... you cannot format parts of a cell differently from the rest of the cell if the cell contains a formula, you can only do that if the cell contains a constant.




The formula is simple enough so it would be easy enough to create an event procedure to place text in the cell that is identical to what that formula would display... I don't think doing so would create any additional problems on the sheet. To write such an event procedure, the OP would need to tell us the starting cell for his formula and the sizes to make the numerical and text sizes.

As I mentioned in my original posting, the starting cell of my formula is in Cell C1
My formula joins the cell A1 & B1 in Cell C1
But at every re-calculate of the sheet the value in A1 & B1 gets changed. So accordingly in Cell C1 it get updated. The numerical part is 3 maximum 3 digit length plus % symbol which must be with bigger font and the text part length varies every time from 6 to 9 characters.
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top