Combine excel equation with data validation

Tamer19933

New Member
Joined
Oct 1, 2018
Messages
6
Hello,

As the title says. For example, I want to do a list from "1" to "10" using data validation option and on the other cell there is an equation in which if the number goes below the "1" it will notify me with an error message.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
If your list is in A2:A11

=IF(MIN(A2:A11)<1,"error message","")

but if you have used data validation , you will get an error message if any number other than 1 through to 10 is entered
 
Upvote 0
If you just want a visual you can do this through cell formatting. You can select the range and format the cells using a custom formula as follows:

[<2]"Error";General;General

This would display error even though the underlying value is still 1. You can still have your data validation as 1 to 10.
 
Upvote 0
I want the cell with the equation to notify me whenever the value is going below the zero .In my case is the (inventory stock) and I connect it with a drop-down list in other cell .Anyway I will try what you recommended , and I appreciate your support.
 
Upvote 0
I want the cell with the equation to notify me

what equation, is this doing something else - not sure I understand
and originally you said 1 or lower, now its below zero
if you could expand
 
Upvote 0
Sorry for confusion, I'm using 4 cells in different columns first one is the drop down list ,and the last one actually is (cell#3 - cell#2) I want the last cell to display message whenever it goes below a number I will define later.
 
Upvote 0
the formula in the last cell is the formula
(cell#3 - cell#2)
format that cell using
ldonkers post , slight modification as you want below 1 now

[<1]"Error";General;General
and you will get "error" in the cell

i think thats really cool
:)

if you need something different - expand
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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