Jump to content

Bit of a shit post here but I'm trying to set up an excel worksheet with data validation and it won't work.

 

I have two dates (Collection and return) and it can't be any less than 3 days between them but it can't be any higher than 90 days. I've managed to set up a minimum day rule but I can't work out how to do a maximum as I can't have two rules on one cell. Any help?

 

If it helps I have a 'Total days' cell that works out the days between the Collection and return date so it does spit out a number of days.

 

Any help would be appreciated. I can attach the file if needed

CPU: FX-6300 GPU: Sapphire R9 380X MOBO: Gigabyte 970A-DS3P RAM: Corsair Vengeance 8GB PSU: XFX XTR 550W CASE: Zalman Z11 Plus SSD: Samsung 840 Evo

17 years old, PC Enthusiast for 3. Be gentle with me, I'm only young.

 

Link to comment
https://linustechtips.com/topic/527632-excel-data-validation/
Share on other sites

Link to post
Share on other sites

Bit of a shit post here but I'm trying to set up an excel worksheet with data validation and it won't work.

 

I have two dates (Collection and return) and it can't be any less than 3 days between them but it can't be any higher than 90 days. I've managed to set up a minimum day rule but I can't work out how to do a maximum as I can't have two rules on one cell. Any help?

 

If it helps I have a 'Total days' cell that works out the days between the Collection and return date so it does spit out a number of days.

 

Any help would be appreciated. I can attach the file if needed

try an AND statement betwwen them something like this:

A33-B33 > 3 AND A33-B33 < 90

where A33 and B33 are the dates

 

are you using if statements in Excel? I believe it was like this

=IF(statement;action on true;action on false)=IF(statement;IF(statement;action on true;action on false);action on false)

CPU: Intel i7 5820K @ 4.20 GHz | MotherboardMSI X99S SLI PLUS | RAM: Corsair LPX 16GB DDR4 @ 2666MHz | GPU: Sapphire R9 Fury (x2 CrossFire)
Storage: Samsung 950Pro 512GB // OCZ Vector150 240GB // Seagate 1TB | PSU: Seasonic 1050 Snow Silent | Case: NZXT H440 | Cooling: Nepton 240M
FireStrike // Extreme // Ultra // 8K // 16K

 

Link to comment
https://linustechtips.com/topic/527632-excel-data-validation/#findComment-7002654
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×