Keeping cell colour

rynhardt

New Member
Joined
Jan 16, 2018
Messages
1
Good day,i hope my issue is an easy one to solve, i am totally stuck so here i go.I have a series of values in Column A Hello 1Hello 2 Hello 3Hello 4 (with hello written in black and the numbers are written in red) and in block G2 i have the formula:=CHOOSE(RANDBETWEEN(1,4),A1,A2,A3,A4) but the info that is then displayed in G2 is in all black how do i fix my formula to display it as on Column A with the text black and numbers in red?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Formulas can only work on cell values not the cell's formatting.

How did you get the values in column A to have two colours in the first place?
Presumably you selected part of the cell text and formatted that text from the ribbon

Just use the same method on cell G2.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,695
Messages
6,192,478
Members
453,727
Latest member
tuong_ng89

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