ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to format a cell to only allow multiples of a number (https://www.excelbanter.com/excel-worksheet-functions/116116-how-format-cell-only-allow-multiples-number.html)

Roger

How to format a cell to only allow multiples of a number
 
I'm trying to format a cell to only allow a numerical value that is a
multiple of 6. Is there a function or conditional formatting that can handle
this?

smw226 via OfficeKB.com

How to format a cell to only allow multiples of a number
 
Hi Roger,

Pop this into the Datavalidationcustom

=MOD(A1,6)=0

HTH

Simon

Roger wrote:
I'm trying to format a cell to only allow a numerical value that is a
multiple of 6. Is there a function or conditional formatting that can handle
this?


--
--------------------
Simon - UK

Email at simon22mports [ a t ] hot mail [ d ot ]com

Message posted via http://www.officekb.com


smw226 via OfficeKB.com

How to format a cell to only allow multiples of a number
 
Hi Roger,

That will only allow you to enter a number divsible by 6 into a cell.

If you put the forumla into the conditional format it will just highlight the
required numbers.

Thanks,

SImon


smw226 wrote:
Hi Roger,

Pop this into the Datavalidationcustom

=MOD(A1,6)=0

HTH

Simon

I'm trying to format a cell to only allow a numerical value that is a
multiple of 6. Is there a function or conditional formatting that can handle
this?



--
--------------------
Simon - UK

Email at simon22mports [ a t ] hot mail [ d ot ]com

Message posted via http://www.officekb.com



All times are GMT +1. The time now is 12:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com