Simple IF formula

brooksc29

Active Member
Joined
Jul 25, 2010
Messages
333
I have inserted "check" boxes in CR2 and CR3.

I'd like to write a formula in DN6 that says:

If CR2 is checked, enter the text AL AVG
If CR3 is checked, enter the text NL AVG


thanks for your help!
 

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"
Hi there

Rightcllick the check boxes - Go to format control and in the cell link dialog box choose a cell lets say CR1. Type TRUE in CR1

Now use the formula
IF(CR1,"AL AVG","")
Do the same for the second check box

George

I have inserted "check" boxes in CR2 and CR3.

I'd like to write a formula in DN6 that says:

If CR2 is checked, enter the text AL AVG
If CR3 is checked, enter the text NL AVG


thanks for your help!
 
Upvote 0
So, Just to be sure,
Your Check boxes, right click them and ensure that you have them linked to the cell underneath of them.

This will make it that If the check box is checked, that Cell will be changed to "True" if unchecked "False"
You can change the Font colour to White to hide the text from displaying.

Code:
=If(CR2="True","AL AVG",IF(CR3="True","NL AVG",""))

An Option box instead of a check box might be better.
What if Neither is is Selected, I'll have "" which is nothing, it'll appear blank.

However, If both are checked, then CR2 will be triggered as it is the first one that is looked at.

let me know if this points you in the right direction,
jc
 
Upvote 0
thanks George,

I applied the cell link to both CR2 and CR3 (where the check boxes are) and then in DN6, used this formula:

=IF($CR$2,"AL AVG","NL AVG")

it's not exactly what I am trying to say, but as both check boxes won't be checked at the same time, it works fine.

thanks for your help!

if you have another moment, would you mind looking at this thread?

http://www.mrexcel.com/forum/showthread.php?t=532066
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

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