ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Getting Grades (https://www.excelbanter.com/excel-programming/305051-getting-grades.html)

snax500[_2_]

Getting Grades
 
In Excel2000, I have the following data:

Name A B C
x 10 12 14
y 8 6 4
z 15 10 8

I want to be able to look up name and then amount and then give me
Grade (A,B,C) like this:

Name Amount Grade
x 12 B - lookup


What's the easist way to do this?

Thanks

Frank Kabel

Getting Grades
 
Hi
try the following formula
=INDEX($B$1:$D$1,1,MATCH(B2,OFFSET('data'!$B$2:$D$ 2,MATCH(A2,'data'!$A$
2:$A$10,0)-1,0),0))


--
Regards
Frank Kabel
Frankfurt, Germany


snax500 wrote:
In Excel2000, I have the following data:

Name A B C
x 10 12 14
y 8 6 4
z 15 10 8

I want to be able to look up name and then amount and then give me
Grade (A,B,C) like this:

Name Amount Grade
x 12 B - lookup


What's the easist way to do this?

Thanks



jessica gottschalk

Getting Grades
 
Thanks for the reply. However it appears that the formula works only if it
is looking up an exact number. For example, if I have the following:

Name A B C
x 10 12 14
y 8 6 4
z 15 10 8

and I lookup:

name amount grade
z 11 B

thanks




"Frank Kabel" wrote in message
...
Hi
try the following formula
=INDEX($B$1:$D$1,1,MATCH(B2,OFFSET('data'!$B$2:$D$ 2,MATCH(A2,'data'!$A$
2:$A$10,0)-1,0),0))


--
Regards
Frank Kabel
Frankfurt, Germany


snax500 wrote:
In Excel2000, I have the following data:

Name A B C
x 10 12 14
y 8 6 4
z 15 10 8

I want to be able to look up name and then amount and then give me
Grade (A,B,C) like this:

Name Amount Grade
x 12 B - lookup


What's the easist way to do this?

Thanks





Frank Kabel

Getting Grades
 
Hi
try
=INDEX($B$1:$D$1,1,MATCH(B2,OFFSET('data'!$B$2:$D$ 2,MATCH(A2,'data'!$A$
2:$A$10,0)-1,0),1))

--
Regards
Frank Kabel
Frankfurt, Germany


jessica gottschalk wrote:
Thanks for the reply. However it appears that the formula works only
if it is looking up an exact number. For example, if I have the
following:

Name A B C
x 10 12 14
y 8 6 4
z 15 10 8

and I lookup:

name amount grade
z 11 B

thanks




"Frank Kabel" wrote in message
...
Hi
try the following formula

=INDEX($B$1:$D$1,1,MATCH(B2,OFFSET('data'!$B$2:$D$ 2,MATCH(A2,'data'!$A$
2:$A$10,0)-1,0),0))


--
Regards
Frank Kabel
Frankfurt, Germany


snax500 wrote:
In Excel2000, I have the following data:

Name A B C
x 10 12 14
y 8 6 4
z 15 10 8

I want to be able to look up name and then amount and then give me
Grade (A,B,C) like this:

Name Amount Grade
x 12 B - lookup


What's the easist way to do this?

Thanks




All times are GMT +1. The time now is 04:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com