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
Solved

Restrict input to only one value per row for a specified range

Posted on 2014-03-20
2
266 Views
Last Modified: 2014-03-20
How would I restrict input to only one value per row for the range D12:K12. The range for the second row would be D13:K13 and so on. There should only be one value in the specified range for each row. The value is any number between 0-99999
0
Comment
Question by:zerog
2 Comments
 
LVL 33

Expert Comment

by:Rob Henson
ID: 39941737
You can use the Custom option in Data Validation with a formula:

=COUNT($D12:$K12)<2

Thanks
Rob H
0
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39941824
Hi,

pls try

=AND(MOD(D12,1)=0,AND(D12>=0,D12<=99999),COUNT(D12:K12)<2)

Open in new window

in your data validation to test if is an integer,  it is between 0 and 9999 and is there only one value per row

Regards
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
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 …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

828 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