Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Probably a stupid question..but Im just starting out


How would I write a function to tell me whether a number was 'high' ,
'medium' or 'low' according to my specifications of what a high, medium
or low figure was ( for example, exam marks where a low is below 40,
medium between 41 and 70 and high above 70)


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Probably a stupid question..but Im just starting out

In the cell, try this (assume B1 is where the score is):

=If(B1<=40,"Low",If(B170,"High","Medium"))

-----Original Message-----

How would I write a function to tell me whether a number

was 'high' ,
'medium' or 'low' according to my specifications of what

a high, medium
or low figure was ( for example, exam marks where a low

is below 40,
medium between 41 and 70 and high above 70)


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Probably a stupid question..but Im just starting out


danke schon- but could i do it as a program not an if statement? Even i
its a long way to do it, I wanna impress said examiner ;)

Thanks loads though *:D

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Probably a stupid question..but Im just starting out

Alpha, here is one way =IF(A170,"High",IF(A140,"Medium","Low"))

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
"AlphaElyssia" wrote in message
...

How would I write a function to tell me whether a number was 'high' ,
'medium' or 'low' according to my specifications of what a high, medium
or low figure was ( for example, exam marks where a low is below 40,
medium between 41 and 70 and high above 70)


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Probably a stupid question..but Im just starting out

Try this:

Function HighLow(ByRef InputCell As Range)
If Not WorksheetFunction.IsNumber(InputCell.Value) Then
HighLow = "Not Numeric"
Exit Function
End If
Select Case InputCell.Value
Case Is < 41: HighLow = "Low"
Case 41 To 70: HighLow = "Medium"
Case Is 70: HighLow = "High"
Case Else
End Select
End Function

Regards

Trevor


"AlphaElyssia" wrote in message
...

danke schon- but could i do it as a program not an if statement? Even if
its a long way to do it, I wanna impress said examiner ;)

Thanks loads though *:D*


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
big stupid question Wu Excel Discussion (Misc queries) 4 May 17th 08 05:33 PM
Stupid Question Justin Kreamer Excel Discussion (Misc queries) 1 May 2nd 08 07:47 AM
Probably a Stupid Question Paige Excel Discussion (Misc queries) 10 February 4th 08 06:52 PM
stupid question Kimberly New Users to Excel 4 May 18th 07 08:55 PM
Stupid Question mastermind Excel Worksheet Functions 1 August 5th 06 07:03 PM


All times are GMT +1. The time now is 09:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"