Hi, i wish to highlight all prime numbers within a column.
How can this be done?
Thanks.
Hi, i wish to highlight all prime numbers within a column.
How can this be done?
Thanks.
you can use this formula
http://www.excelexchange.com/prime_number_test.html
and put into conditional formatting
=IF(C1=2,TRUE,IF(AND(MOD(C1,ROW(INDIRECT("2:"&ROUNDUP(SQRT(C1),0))))<>0),TRUE,FALSE))
Wayne
if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here
If you have a solution to your thread - Please mark your thread solved do the following: >
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Your welcome, thanks for the rep
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks