Solved

Validation Rule (Formula)

Posted on 2013-06-11
6
287 Views
Last Modified: 2013-06-12
Hello Experts,

I have a worksheet, that I need to control if the user should be entering a value into a cell.

See image...

example
The weight columns, are the ONLY columns the user is allowed to type but ONLY IF there is a pallet # to the left.

Is it possible to reject a weight, if there's no pallet listed?

Thank you in advance for your help!

~ Geekamo
0
Comment
Question by:Geekamo
  • 2
  • 2
  • 2
6 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 400 total points
ID: 39239408
It looks like your data start in Row 5 or so.  So...

1) Select F5:F?????

2) Go to Data Validation, type Custom, using formula:

=COUNT($E5:$F5)=2

That will only allow entries in Col F if both Col E and Col F have numeric values.
0
 
LVL 22

Assisted Solution

by:Flyster
Flyster earned 100 total points
ID: 39239436
Click on cell F1. Go to the data tab - data validation. Under the Settings tab go to Allow and select Custom. In Formula enter "=LEN(E1)>0" (without quotes.) Make sure Ignore Blank is unchecked. Copy F1, highlight F2 to whatever ending cell you want. Right-click one of the cells, select paste special - validation. That should work for you.

Flyster
0
 
LVL 1

Author Comment

by:Geekamo
ID: 39239908
@ matthewspatrick,

I ended up using, "=COUNT($E3)=1".

@ Flyster,

I wasn't familiar with the LEN function, but that's pretty cool how that function gets the same answer in a different way. (I just read up on it to see how it functions)

@ All,

For now, I'll stick with the COUNT function - only because I am more familiar with it. But you both gave me great answers.

Any objections to me splitting the points between you both?

~ Geekamo
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 22

Expert Comment

by:Flyster
ID: 39240069
Geekamo,

LEN function gives you the LENGTH of the data in the cell. So if your name was in A1, LEN(A1) would give you 7.  I have no problem with you giving Matthewspatrick all the points. His response was first and chosen. I'm just glad you found a solution to your problem.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39240898
Either way suits me :)
0
 
LVL 1

Author Comment

by:Geekamo
ID: 39242324
@ all,

400/100 split

Thank you again!

~ Geekamo
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question