IF function

Webceeper

New Member
Joined
Nov 14, 2009
Messages
12
Hi
I need some assistance with the IF function.
In cell B3, I can select an "O" or a "C" and into cell B6, B7 & B8 are printed on some fixed values.
When I choose "O" in cell B3, the three values ​​has to be visible and hidden when I choose "C"
Can I get help with the formula :confused:
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi Web,

In B6, B7 and B8 put the following formula:

=IF(B3="O","","your_fixed_value")

Change "your_fixed_value" in each cell to the fixed value you want for each cell. If it's numeric values, leave off the quotation marks.
 
Upvote 0
you could use conditional format --- highlight B6:B8 and use conditional format / formula
Code:
=$B$3="C"
then format font to white
 
Upvote 0
Hi Web,

In B6, B7 and B8 put the following formula:

=IF(B3="O","","your_fixed_value")

Change "your_fixed_value" in each cell to the fixed value you want for each cell. If it's numeric values, leave off the quotation marks.


Thanks for your answer. I have excel2003
But i can not get it to work. in the fixed value cells there is values which i put in and there can therefore not be a formula.
The best result for me is when my values in cells B6 to B8 will go to zero when B3 is "C" and appears again when B3 is "O" because B6 to B8 is a part of a bigger calculation / result

rgds, Webceeper
 
Upvote 0
you could use conditional format --- highlight B6:B8 and use conditional format / formula
Code:
=$B$3="C"
then format font to white


thanks for your answer.
But i can not get to work. My values is not changing colours when i use your mentioned formula !!

rgds, Webceeper
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,874
Members
452,949
Latest member
Dupuhini

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