Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default VBA Macro Grade Curve Question

All,

I am trying to come up with a VBA maco that someone may or may not know
of something that is in existance or can be created. I want to create a
macro that you can define the range, then have the function evaluate between
a score range and add x points to the grade . So say I want to add x points
(7 for example) between y and z score (say for example 50 and 60). Then have
the function evaluate each cell in the range between y and z and add 7
points to the raw score. XYZ and the range all need to be user definable. I
am still working on the problem and will post my progress as I work on it.
Any help would be greatly appreciated.

Regards,

Nathan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA Macro Grade Curve Question

Sub AdjustGrades()
Dim x as long, y as long, z as long
Dim cell as Range
x = 7
y = 50
z = 60

for each cell in selection
if cell.Value = y and cell.Value <= z then
cell.Value = cell.value + x
end if
Next
End Sub

--
Regards,
Tom Ogilvy
"Nathan Bell" wrote in message
...
All,

I am trying to come up with a VBA maco that someone may or may not

know
of something that is in existance or can be created. I want to create a
macro that you can define the range, then have the function evaluate

between
a score range and add x points to the grade . So say I want to add x

points
(7 for example) between y and z score (say for example 50 and 60). Then

have
the function evaluate each cell in the range between y and z and add 7
points to the raw score. XYZ and the range all need to be user definable.

I
am still working on the problem and will post my progress as I work on it.
Any help would be greatly appreciated.

Regards,

Nathan




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
Formula to compute letter grade based on percentage grade S.Hinkle Excel Discussion (Misc queries) 1 September 3rd 09 07:54 PM
Choose 2 of 6 optional units for grade - formula question xtrailer Excel Worksheet Functions 1 August 28th 08 10:01 PM
when doing a grade book how do you drop the lowest grade dove Excel Worksheet Functions 1 November 28th 06 06:54 PM
when doing a grade book how do you drop the lowest grade CLR Excel Worksheet Functions 0 November 28th 06 06:53 PM
Grade Percentage into letter grade James Excel Discussion (Misc queries) 4 December 14th 05 03:24 AM


All times are GMT +1. The time now is 10:28 PM.

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"