Conditionally Format Numbers based on Text in another Cell

RLBrown

New Member
Joined
Aug 6, 2018
Messages
25
Hello Mr. Excel Members, I'm hoping someone can help me format numbers based on text. Scenario:
Cell A1 contains 5 unique names in 'text'. (Price, ACV, Units, etc.)

If A1 contains the word 'Price' I want the number in B1 to be formatted as currency ($00.00)
If A1 contains the word 'Units' I want the number in B1 to be formatted as number (000)
If A1 contains the word 'ACV' I want the number in B1 to be formatted as Percent (00.0%)

I can't figure out how to tie the specific word and number format together so that the formats automatically change based on what is in A1.

Any help appreciated! Rhonda
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Follow the steps:

1.Menu Formatting conditional, new rule, Use a formula to determine which cells to format.

2. Format values where this formla is true:
=$A$1="Price"

3. Press button "Format"

4. On tab Number select Currency

5. Press Ok, Press Ok

6. In Apples To:
=$B$1

7. OK

Repeat the steps for the other formats
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,683
Members
449,116
Latest member
HypnoFant

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