Odd and even number with conditional formatting

snekkis

New Member
Joined
Feb 11, 2013
Messages
16
Please, can someone help me with this one:

I have a cell containing a 11 digit number. I would like to give another cell a conditional formatting based upon the 3rd digit from the right in this 11 digit number, or 9th from the left if you like. The formatting should be one for odd number, and one formatting for the even.

Thanks!
 
So, further to what emukiss10 has said, perhaps they should be:

=ERPARTALL(DELTEKST(A2;9;1))
=ERODDE(DELTEKST(A2;9;1))
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Two things:

First you have applied the formatting to the whole of column B, so you have to use A1 in the formula, not A2.
Second, the formula is testing the last three digits, not just the third to last digit.

I'm using the
Code:
 [COLOR=#333333][FONT=Arial]=ISODD(MID(A2,9,1))
and
Code:
 [/FONT][/COLOR][COLOR=#333333][FONT=Arial]=ISEVEN(MID(A2,9,1))[/FONT][/COLOR]
translated in Norwegian in the new attached file, and it seems to work, but it is only formatting ISEVEN in this file. Only green color shows. The ISODD formula should show red, to my understanding, but it is not.

https://drive.google.com/file/d/0Bxz42nal2vNjalFCZ3lFQ1VZc3BaWmsxOXVicjZnNDdOa0Rz/view?usp=sharing
 
Upvote 0
Your ISODD formula is spelled wrong. I think it should be ERODDETALL rather than ERODDETALLL.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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