Simple Question.......

bfraser

Board Regular
Joined
Apr 15, 2006
Messages
113
I need to do present a Warning message if any of three cell locations have a value greater than 8, otherwise be blank. Can someone tell me what is wromg with my formula?


If(EG13>8, or EG18>8, or EG23>8,"Warning, you have exceeded the allowable limit","")
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
If you wanted a popup box message rather than your message being put into a cell you could use vba. Something like this:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Msg As String
 
If Target.Address = Range("EG13").Address Or Target.Address = Range("EG18").Address Or Target.Address = Range("EG23").Address Then
    If Range("EG13").Value > 8 Or Range("EG18").Value > 8 Or Range("EG23").Value > 8 Then
        Msg = MsgBox("Warning, you have exceeded the allowable limit.", vbCritical, "Warning")
    End If
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,882
Members
452,948
Latest member
Dupuhini

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