Display a message when a Cell value exceeds 75% of the total allowed expenditure

chamdan

New Member
Joined
Dec 14, 2009
Messages
18
How can you display a message when a cell value exceeds 75 % of the allowed expenditure.

Let us say the Cell in D6 is the Maximum allowed and the Cell D5 is the Rolled up total of expenditure.

e.g.: If D6 is $100,000 then, when D5 exceeds $75,000 then either make the cell blink or display a message saying: "You have reached the 75% of the allowed expenditure and therefore requires your attention!"

I frankly could not find a way to that and your help will be much appreciated.

Thanks in advance!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Got it resolved by using the following event:

HTML:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Range("D5").Value > Range("D6").Value * 0.75 Then
       msg = "Expenditure has reached the 75% of the acceptable amount!"
       pt = MsgBox(msg, vbCritical, "Exceeded Limits")
    End If
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,259
Members
452,901
Latest member
LisaGo

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