Solved

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

Posted on 2014-03-20
263 Views
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
Question by:zerog

LVL 32

Expert Comment

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

=COUNT(\$D12:\$K12)<2

Thanks
Rob H
0

LVL 49

Accepted Solution

Rgonzo1971 earned 500 total points
ID: 39941824
Hi,

pls try

``````=AND(MOD(D12,1)=0,AND(D12>=0,D12<=99999),COUNT(D12:K12)<2)
``````
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

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.