Conditional number format based on the text of another field

AKAvenger

New Member
Joined
Mar 22, 2017
Messages
32
Hi Guru's

Need some help on a conditional format.

I have two columns, A = "Fruit Names" and another B = "Value" in which a value can be entered manually.

I need column B number format to change as follows:

If column A "Fruit Names" = "Apple", "Banana", "Peach" then number format in column B "Value" should be % BUT, if column A "Fruit Names" = "Pears" or "Watermelon" then column B "Value" should be number.

I have tried, but only succeed if there is one condition, I don't know how to do this with multiple conditions.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Format the column as Number and then in CF use
Excel Formula:
=or(A2="Apples",A2="Banana",A2="Peach")
and set the format for %
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,382
Messages
6,119,194
Members
448,874
Latest member
Lancelots

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