Two conditions for a cell

mallquimarco

New Member
Joined
Aug 10, 2020
Messages
7
Office Version
  1. 2013
Platform
  1. Windows
Hi everyone, first post. I something simple I suppose.
I need to set up a two conditions in a cel.
The user is allowed just to write a number >= 10 and multiples of 5.
So far I have just ine part of the statement which is the easier (>=10) but I don´t know how the set up the "multiples" part.
Please help. Thanks in advance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
try
=AND(MOD(A4,5)=0,A4>=10)

Book1
ABCDE
3
435TRUETRUE
5
Sheet1
Cell Formulas
RangeFormula
C4C4=MOD(A4,5)=0
D4D4=AND(MOD(A4,5)=0,A4>=10)
Cells with Data Validation
CellAllowCriteria
A4Custom=AND(MOD(A4,5)=0,A4>=10)
 
Upvote 0
Hi ETAF, sadly it doesn´t work. What I need is that the user just can input 10, 15,20,25,30,35,40,45, etc. Not less than 10, no 11,no 12,no 13,no 14,no 16, no 17, etc. I set up this:

=SI(Y(RESIDUO(K18,5)=0),K18>=10,1,0)

but I didn´t work either.

:(
 
Upvote 0
Worked for me
Data validation - custom ,
input the formula

=AND(MOD(A4,5)=0,A4>=10)

=AND(MOD(K18,5)=0,K18>=10)

user can only put in those multiples of 5 but must be 10 or more

Not sure of language you are set to
So dont know the formula you are using


I also added the MOD formula in C4 and MOD & AND in E4

Link to working file
 
Upvote 0
did you try this in Data Validation
dv.png
 
Upvote 0
maybe: =Y(RESIDUO(K18,5)=0,K18>=10)
select K18 and use Data Validation as above
 
Upvote 0
I have this statement

1597098712754.png


but it doesn´t allow me to input anything

1597098787827.png
 

Attachments

  • 1597098293734.png
    1597098293734.png
    47.2 KB · Views: 1
Upvote 0
did you try formula without SI as in post#6 ?
When I use "=" at the beginning of the statement I get this:

1597099241782.png


If I not use "=" I can save the statemente but it doesn´t work in the sheet

1597099316188.png


This is driving me crazyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
 
Upvote 0
your separator is , (comma) or ; (semicolon) ?

=Y(RESIDUO(K18,5)=0,K18>=10)
or
=Y(RESIDUO(A4;5)=0;A4>=10)
I suggest the second
 
Upvote 0

Forum statistics

Threads
1,215,772
Messages
6,126,810
Members
449,339
Latest member
Cap N

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