Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

Assigning a Value based on Results

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JerryS - 15 Jun 2007 16:01 GMT
I'm averaging a list of numbers and want to assign a value based on that
number. For example, the average is 45. I want a cell to display a character
based on the average. If the average is between 40 and 49, the value is B. If
the average is between 50 and 59, the average is A. Any suggestions? Thanks
Signature

JerryS

PCLIVE - 15 Jun 2007 16:15 GMT
What if it is neither average...what should be returned?
Possibly one way:

=IF(AND(AVERAGE(A1:A10)>=40,AVERAGE(A1:A10)<=49),"B",IF(AND(AVERAGE(A1:A10)>=50,AVERAGE(A1:A10)<=59),"A","Value
if neither average"))

HTH,
Paul

> I'm averaging a list of numbers and want to assign a value based on that
> number. For example, the average is 45. I want a cell to display a
[quoted text clipped - 3 lines]
> the average is between 50 and 59, the average is A. Any suggestions?
> Thanks
Rick Rothstein (MVP - VB) - 15 Jun 2007 16:47 GMT
> What if it is neither average...what should be returned?
> Possibly one way:
>
> =IF(AND(AVERAGE(A1:A10)>=40,AVERAGE(A1:A10)<=49),"B",IF(AND(AVERAGE(A1:A10)>=50,AVERAGE(A1:A10)<=59),"A","Value
> if neither average"))

You have a "dead spot" in your range... you will report and out of range
message for an average greater than 49 and less than 50. This might be one
way to repair that...

=IF(AVERAGE(A1:A10)<40,"Out of
Range",IF(AVERAGE(A1:A10)<50,"B",IF(AVERAGE(A1:A10)<60,"A","Out of Range")))

Rick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.