Alerts for a range...

aspar165

New Member
Joined
Apr 20, 2011
Messages
5
I want to set up an alert to warn the user the Cost of Sales they entered is too high. They will be able to input Cost in Column A and Retail Price in Column B while Column C automatically calculates the COS %.

I would like to have an alert pop up when a COS % is outside of a particular range (ie 35% - 55%). Unfortunatley, Ive had a tough time figuring out how to enter a % range in Data Validation. I have tried just using decimals but with no sucess.

Any help?

Thanks!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try this on the first cell in your Retail Price column (change B2 to correct reference), then select the whole range and apply Data Validation to all
Code:
 =AND(OFFSET(B2,0,1)>34.99%,OFFSET(B2,0,1)<55%)
 
Upvote 0
I'm not sure I follow. If I input this formula into my Retail Price, it reads either true or false.

My Cost column and Retail Price column are inputs for the user. The Cost of Sales column has the following formula:

=if(L6=0,"",K6/L6), which gives me the Cost of Sales %. It is this cell (in my example M6) that I would like the validation to reference.

Does that make more sense? I appreciate the quick response...please continue helping!!!

Thanks!
 
Upvote 0
Don't put the formula in the cell, put Data validation on your retail price cell with the formula as Custom validation. If you key a value into your retail price and the result of the formula in COS is out of your specified range, the user will get an alert
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,766
Members
452,940
Latest member
rootytrip

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