Solved

Validation Rule (Formula)

Posted on 2013-06-11
6
308 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

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.  

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

726 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