![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 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 |
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
Bump
Plz? neone |
|
|
|
|
|
#3 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
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 |
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
Thanks for that one
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|