Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Assigning a Value based on Results

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
--
JerryS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Assigning a Value based on Results

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

"JerryS" wrote in message
...
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
--
JerryS



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Assigning a Value based on Results

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

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
assigning class standing based on grade Christopher Excel Discussion (Misc queries) 3 November 12th 06 09:06 PM
assigning value to a column based on a table of values Jacob Excel Discussion (Misc queries) 3 January 13th 06 08:46 PM
=If() results based on cell color? Ken Peterson Excel Worksheet Functions 3 January 10th 06 02:21 PM
Pivot - need to recount based on results Kreed Excel Worksheet Functions 2 October 19th 05 08:51 PM
Graph based on Filtered results Steve Excel Discussion (Misc queries) 0 March 30th 05 04:59 PM


All times are GMT +1. The time now is 04:58 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"