ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Setting Max Value (https://www.excelbanter.com/excel-programming/352911-setting-max-value.html)

Amy Stein

Setting Max Value
 
I have a worksheet with a range of cells that have a SUMIF function
based on entry into another range of cells. How can I prevent user
entry that will cause these cells to exceed the value of 10?


Thanks in advance for any help.


Amy


Bob Phillips[_6_]

Setting Max Value
 
Assuming the sum is in C1, add data validation with a custom formula in the
cells, a formula of =$C$1<=10

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Amy Stein" wrote in message
oups.com...
I have a worksheet with a range of cells that have a SUMIF function
based on entry into another range of cells. How can I prevent user
entry that will cause these cells to exceed the value of 10?


Thanks in advance for any help.


Amy




Amy Stein

Setting Max Value
 
Yes, I tried...the SUMIF is the issue...the data entry is dependent
upon two different ranges so the validation isnt working. I was
thinking I needed to use VBA.


ben

Setting Max Value
 
Select you range of cells to protect
then in the Main Menu goto
DataValidation
on the settings tab
under the 'Allow' Drop box select whole number
then use 1 or 0 as a minumum and 10 as a maximum


--
When you lose your mind, you free your life.
Ever Notice how we use '' for comments in our posts even if they aren''t
expected to go into the code?


"Amy Stein" wrote:

I have a worksheet with a range of cells that have a SUMIF function
based on entry into another range of cells. How can I prevent user
entry that will cause these cells to exceed the value of 10?


Thanks in advance for any help.


Amy



ben

Setting Max Value
 
do you not want the range of cells with the formula to exceed 10?
if that is the case we will need some idea of what the data the user enters
to be added up in the SUMIF functions, that is the data you will have to
validate
Ben

--
When you lose your mind, you free your life.
Ever Notice how we use '' for comments in our posts even if they aren''t
expected to go into the code?


"Amy Stein" wrote:

Yes, I tried...the SUMIF is the issue...the data entry is dependent
upon two different ranges so the validation isnt working. I was
thinking I needed to use VBA.



Tushar Mehta

Setting Max Value
 
Why don't you share some specific information about the various ranges
involved instead of all these abstract statements. You'd be surprised at
how much can be done in XL w/o using VBA. Too many rely on the latter
prematurely.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article .com,
says...
Yes, I tried...the SUMIF is the issue...the data entry is dependent
upon two different ranges so the validation isnt working. I was
thinking I needed to use VBA.




All times are GMT +1. The time now is 11:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com