ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Data Validation (https://www.excelbanter.com/excel-discussion-misc-queries/45938-data-validation.html)

Eintsein_mc2

Data Validation
 
Hi, I have a data validation formula that works fine when figures in
multiples 84 are entered into the cell and if not gives an error. But I
need to rewrite it so it can also work if the figure is in multiples of
61 as well as 84. This is what I have:
=MOD(F21,84)=0
Any help would be great. Thanks


Ken Johnson

Hi Eintsein,
will =AND(MOD(F21,61)=0,MOD(F21,84)=0) do what you want?
Ken Johnson


Eintsein_mc2

Hi Ken, I tried it and now it dosnt matter what figure I put into the
cell it comes up with an alert. Thanks for trying


Sandy Mann

Try:

=AND($F$21<"",OR(MOD($F$21,84)=0,MOD($F$21,61)=0) )

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"Eintsein_mc2" wrote in message
oups.com...
Hi Ken, I tried it and now it dosnt matter what figure I put into the
cell it comes up with an alert. Thanks for trying




Ken Johnson

Eintsein,
when you said "multiples of 61 as well as 84" I took that to be 61 and
84 at the same time when I should have interpreted it to mean 61 or 84.
I assume Sandy's solution has worked for you.
Ken Johnson


Eintsein_mc2

Thanks Sandy, your solution did work. I'm most appreciative that both
you Guys took the time to post a solution. Cheers



All times are GMT +1. The time now is 01:24 AM.

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