Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default converting numbers

I need to convert practice time totals to number grades. Anything from 0 to
65 needs to stay as is, and 66 to 180 minutes need to convert to a range of
grades from 65 to 100. For example, a practice time of 180 minutes should
return 100 as a grade. I know about vlookup, and can get specific cutoffs
such as 180 minutes = 100, 150 minutes = 95, 120 minutes = 85, 90 minutes =
75, and 65 minutes = 65. How do I get the numbers that would fall in between
without having to do an individual lookup for each possible number?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default converting numbers

If I understand you...

0 to 65 = 0 to 65
66 to 90 = 75
91 to 120 = 85
121 to 150 = 95
150+ = 100

A1 = some number

=IF(A1<=65,A1,LOOKUP(A1,{66,91,121,151},{75,85,95, 100}))

--
Biff
Microsoft Excel MVP


"sevy" wrote in message
...
I need to convert practice time totals to number grades. Anything from 0 to
65 needs to stay as is, and 66 to 180 minutes need to convert to a range
of
grades from 65 to 100. For example, a practice time of 180 minutes should
return 100 as a grade. I know about vlookup, and can get specific cutoffs
such as 180 minutes = 100, 150 minutes = 95, 120 minutes = 85, 90 minutes
=
75, and 65 minutes = 65. How do I get the numbers that would fall in
between
without having to do an individual lookup for each possible number?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 793
Default converting numbers

Use TRUE as the last parameter of your VLOOKUP - it gives you the closest
match.

Enter lower ranges in one column and grades against that in another column...
Sort ascending and then enter VLOOKUP

For your values;
1. Enter in Col A
65
90
120
150
180

2. Enter in Col B
65
75
85
95
100

3. Enter the following formula in your grade column (assuming value to grade
are in Col L)

=IF(L165,VLOOKUP(L1,A:B,2,TRUE),L1)

"sevy" wrote:

I need to convert practice time totals to number grades. Anything from 0 to
65 needs to stay as is, and 66 to 180 minutes need to convert to a range of
grades from 65 to 100. For example, a practice time of 180 minutes should
return 100 as a grade. I know about vlookup, and can get specific cutoffs
such as 180 minutes = 100, 150 minutes = 95, 120 minutes = 85, 90 minutes =
75, and 65 minutes = 65. How do I get the numbers that would fall in between
without having to do an individual lookup for each possible number?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default converting numbers

sevy,

You need to do tabular interpolation.

Enter this table in A1:B7 (A1 and B1 have the headers)

Time Score
0 0
65 65
90 75
120 85
150 95
180 100

Enter the actual minutes in cell D2, and enter this into cell E2

=IF(ISERROR(MATCH(D2,$A$2:$A$7,FALSE)),TREND(OFFSE T($B$1,MATCH(D2,$A$2:$A$7,1),0,2,1),OFFSET($A$1,MA TCH(D2,$A$2:$A$7,1),0,2,1),D2),INDEX(B2:B7,MATCH(D 2,$A$2:$A$7,FALSE)))

HTH,
Bernie
MS Excel MVP


"sevy" wrote in message
...
I need to convert practice time totals to number grades. Anything from 0 to
65 needs to stay as is, and 66 to 180 minutes need to convert to a range
of
grades from 65 to 100. For example, a practice time of 180 minutes should
return 100 as a grade. I know about vlookup, and can get specific cutoffs
such as 180 minutes = 100, 150 minutes = 95, 120 minutes = 85, 90 minutes
=
75, and 65 minutes = 65. How do I get the numbers that would fall in
between
without having to do an individual lookup for each possible number?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default converting numbers

If you are willing to forego grades rounded to the even 5's, here is the
formula that results from creating an exact proportional scaling between
your minutes range and your grades range (with a roundup to an integer value
to eliminate the decimal portions)...

=IF(A1<65,A1,ROUNDUP((35*A1+5065)/114,0))

Your milestone grades come out like this... 65=65, 90=73, 120=82,
150=91, 180=100.

--
Rick (MVP - Excel)


"sevy" wrote in message
...
I need to convert practice time totals to number grades. Anything from 0 to
65 needs to stay as is, and 66 to 180 minutes need to convert to a range
of
grades from 65 to 100. For example, a practice time of 180 minutes should
return 100 as a grade. I know about vlookup, and can get specific cutoffs
such as 180 minutes = 100, 150 minutes = 95, 120 minutes = 85, 90 minutes
=
75, and 65 minutes = 65. How do I get the numbers that would fall in
between
without having to do an individual lookup for each possible number?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 272
Default converting numbers

=PERCENTILE({0,65,75,85,95,100},PERCENTRANK({0,65, 90,120,150,180},A1,30))

"sevy" wrote:

I need to convert practice time totals to number grades. Anything from 0 to
65 needs to stay as is, and 66 to 180 minutes need to convert to a range of
grades from 65 to 100. For example, a practice time of 180 minutes should
return 100 as a grade. I know about vlookup, and can get specific cutoffs
such as 180 minutes = 100, 150 minutes = 95, 120 minutes = 85, 90 minutes =
75, and 65 minutes = 65. How do I get the numbers that would fall in between
without having to do an individual lookup for each possible number?

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
Converting hr min sec into numbers [email protected] Excel Worksheet Functions 5 August 17th 07 10:29 PM
Converting numbers cudan Excel Discussion (Misc queries) 1 July 24th 06 10:54 PM
Converting positive numbers to negative numbers Treg67 Excel Worksheet Functions 4 July 17th 06 03:57 PM
Converting numbers formatted as text to numbers Bill Excel Discussion (Misc queries) 1 July 19th 05 07:10 PM
converting to numbers smintey Excel Worksheet Functions 1 February 24th 05 02:51 PM


All times are GMT +1. The time now is 11:54 AM.

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

About Us

"It's about Microsoft Excel"