Data Validation - force entries to equal another cell

durden3eb

New Member
Joined
Sep 2, 2011
Messages
2
First, sorry if this has been asked before. I used the Search function and didn't find this in five pages, so hopefully it hasn't been asked recently at least.

I need to limit the entries in three cells to sum up to the total in another cell. For example, B1+B2+B3 must equal A1. I'm trying to use data validation to do this, by using a custom validation: =sum($B$1:$B$3)=$A$1. However, that isn't working ... I am allowed to enter a value in B1, but then cannot enter anything in B2 unless it is the remainder needed to sum up to A1. In other words, that validation is ignoring that users will still be allowed to enter a number in B3.

The total must equal A1, also. I don't want to give users the option to be less than A1 at all. Any suggestions?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
The problem you will have here, as you have already discovered, is that during the process of entering the values in B1:B3, the total will at some point not be equal to A1 when you haven’t finished entering the values.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
Might I suggest you just use some conditional formatting to highlight if the rules have been broken rather than trying to restrict the cell values themselves. Although, without knowing why you want to do this, I don’t know if that is a suitable solution.
 
Upvote 0
That is an easier solution, but I'm creating a spreadsheet that our sales team will use, so I want to make it as limited as possible. What this will do is allow them to look at sales total from 3 different products, which obviously will add to some total, or A1 in my previous example. Then, cells B1:B3 can be manipulated to redistribute that total among those three products. So if before:

Product 1 - $25
Product 2 - $50
Product 3 - $75
Total - $150

I want to allow them to redistribute that $150 among the 3 products as they see fit, but the end result MUST always be $150.

Maybe data validation isn't the way to do that?
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top