Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
lawdoggy
 
Posts: n/a
Default 'vlookup' and/or 'if' help!

Hello...i'm in charge of conducting a physical training test and have a
table already created with the parameters of the test. Here is a
partial table:

% 1.5 mile 300m Bench sit-ups push vertical
99 9:52 42 1.72 62 72 30
95 10:34 48 1.40 50 60 25.5
90 11:20 50 1.30 47 51 24
85 11:55 52 1.18 45 50 22
80 12:30 53 1.11 43 44 21.5
75 12:56 54 1.04 42 41 21


what i would like to do is put in everyone's scores and have excel
check this table to tell me what percentage they received for that
score. i have been trying vlookup without success. i'm not sure how the
proper syntax would be to say:

Smith ran the 1.5 mile in 10 minutes 05 seconds. now this value in the
above table is between 99% and 95%. do i use vlook up for this? the
correct answer is 95% because the value falls to if the better one is
not reached.

any help would be greatly appeciated!

thanks...mitch

  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On 16 Aug 2005 13:01:16 -0700, "lawdoggy" wrote:

Hello...i'm in charge of conducting a physical training test and have a
table already created with the parameters of the test. Here is a
partial table:

% 1.5 mile 300m Bench sit-ups push vertical
99 9:52 42 1.72 62 72 30
95 10:34 48 1.40 50 60 25.5
90 11:20 50 1.30 47 51 24
85 11:55 52 1.18 45 50 22
80 12:30 53 1.11 43 44 21.5
75 12:56 54 1.04 42 41 21


what i would like to do is put in everyone's scores and have excel
check this table to tell me what percentage they received for that
score. i have been trying vlookup without success. i'm not sure how the
proper syntax would be to say:

Smith ran the 1.5 mile in 10 minutes 05 seconds. now this value in the
above table is between 99% and 95%. do i use vlook up for this? the
correct answer is 95% because the value falls to if the better one is
not reached.

any help would be greatly appeciated!

thanks...mitch


There may be a better method to do this but:

The problem with VLOOKUP and MATCH is that they will match the lesser number,
so using one of those solutions will result in 99 for your example.

You can set the matching condition in an **array** formula, then use MATCH to
see when that condition becomes TRUE, and use that as an INDEX into the PerCent
array.

For example, for the distance events, you want to MATCH where the score is <=
the value in the column; for the others, you want to MATCH where the score is
= the value in the column.


Name your columns in the table to make the formulas easier to understand. I
used PerCent, Run and Swim for your %, 1.5 mile and 300m columns.

So for the 1.5mi and 300m, you could use this array formula:

=INDEX(PerCent,MATCH(TRUE,Score<=Run,0))
and
=INDEX(PerCent,MATCH(TRUE,Score<=Swim,0))

For the other events, you would use

=INDEX(PerCent,MATCH(TRUE,Score=SitUps,0))

To enter an **array** formula, after typing it in, hold down <ctrl<shift
while hitting <enter. Excel will place braces {...} around the formula.


--ron
  #3   Report Post  
lawdoggy
 
Posts: n/a
Default

Ron,

Thank you! it's working great. One more thing, how do I get it to not
put '#n/a' when there is no entry in that field. ie someone hasn't done
the 1.5 mile run yet?

mitch

  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On 16 Aug 2005 18:23:36 -0700, "lawdoggy" wrote:

Ron,

Thank you! it's working great. One more thing, how do I get it to not
put '#n/a' when there is no entry in that field. ie someone hasn't done
the 1.5 mile run yet?

mitch


2 possible methods:

1. Use conditional formatting (Format/Conditional Formatting
Formula Is: =ISNA(A1)
Then format the font to be white, or the same color as whatever you are
using for a background color. The NA is still there; you just can't see it.

2. Wrap the original formula in an IF statement to check for a value in Sco

=IF(Score="","",=INDEX(PerCent,MATCH(TRUE,Score<=R un,0)))




--ron
  #5   Report Post  
Morrigan
 
Posts: n/a
Default


In the attached spreadsheet, I used MATCH(). Hope it does what you
want.



lawdoggy Wrote:
Hello...i'm in charge of conducting a physical training test and have a
table already created with the parameters of the test. Here is a
partial table:

% 1.5 mile 300m Bench sit-ups push vertical
99 9:52 42 1.72 62 72 30
95 10:34 48 1.40 50 60 25.5
90 11:20 50 1.30 47 51 24
85 11:55 52 1.18 45 50 22
80 12:30 53 1.11 43 44 21.5
75 12:56 54 1.04 42 41 21


what i would like to do is put in everyone's scores and have excel
check this table to tell me what percentage they received for that
score. i have been trying vlookup without success. i'm not sure how
the
proper syntax would be to say:

Smith ran the 1.5 mile in 10 minutes 05 seconds. now this value in
the
above table is between 99% and 95%. do i use vlook up for this? the
correct answer is 95% because the value falls to if the better one is
not reached.

any help would be greatly appeciated!

thanks...mitch



+-------------------------------------------------------------------+
|Filename: Physical.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3696 |
+-------------------------------------------------------------------+

--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=396266



  #6   Report Post  
lawdoggy
 
Posts: n/a
Default

Hello Morrigan,

I clicked on the link you provided and it told it was an 'invalid
attachment specified'? could you please just email it to me:


I really appreciate your time! thanks...mitch

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
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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

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"