Formula help odd numbers

Runes

New Member
Joined
Jul 26, 2009
Messages
8
Ok I have a table where 2 columns cannot have odd numbers. I have a conditional format in place that turns the boxes red when and odd number is used but I need a warning to pop up saying "no odd numbers" in another box. I can get it to work for one box but when I try to get it to cover both columns it does not work. This is what I am using currently for my formula but as you can see it only covers one box IF((MOD(C5,2)<>0),"NO ODD NUMBERS!",""). I have tried to get both columns in here but it does not work. Can I include this in my conditional format as a second condition? Right now it is a separate formula in the box, which is fine also. I need the box to turn red (which it does) and say the above.

Any help would be appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi.

Have you tried Data Validation?
You can highlight each column and apply a Data Validation message to be displayed when any of the cells are selected.
Or you can use this formula in DV to prevent the user from entering an odd number....
=MOD(C5,2)=0
C5 being the first cell in the column.

I hope that helps.

Ak
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,384
Members
448,956
Latest member
JPav

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