Some Help plz :)

Coded

New Member
Joined
Mar 4, 2002
Messages
5
1)Well i have b8 as ages and b17 as another number. What i want is a error message to pop up if b8 is smaller than 18 AND b17 i lager than 1.


Also, i got a scoring scroll bar and in another cell i wont it to say different things for different scores, like between 10 and 50 = bad, between 50 and 75 = allright, and then 75+ = good, how do i do this?

Cheers
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
How's this:

1) Right click on your sheet in question and paste the following code:

Option Explicit

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("b8") < 18 And _
Range("B17") > 1 Then
MsgBox "Error"
End If
End Sub


Change "Error" to whatever message you want to show.

2) Say your data is in cell a1, the following formula should accomodate your needs:

=IF(A1<51,"Bad",IF(A1<76,"Alright","Good"))


Hope this helps. Cheers,

Nate
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,755
Members
449,049
Latest member
excelknuckles

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