ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   hlookup (https://www.excelbanter.com/excel-discussion-misc-queries/133364-hlookup.html)

tikchye_oldLearner57

hlookup
 
hi community

when i created a table horizontally, a value from Ascending scale...
example:

mark: 0 30 40 60 80 90
grade F E D C B A

and when I used the =hlookup to find the approximate mark say, 85, I able to
obtain "B"

however when I reverse the mark to Descending scale...
and use the same hlookup method with 85 I obtain an "F"

is there a way to find the correct grade if I place the mark in Descending
scale ??

thanks community for help render :)

--
oldLearner57

Niek Otten

hlookup
 
With your table in A1:F2 and your search argument in A4:

=INDEX(A2:F2,,MATCH(A4,A1:F1,-1))

Gives you "A"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"tikchye_oldLearner57" wrote in message
...
| hi community
|
| when i created a table horizontally, a value from Ascending scale...
| example:
|
| mark: 0 30 40 60 80 90
| grade F E D C B A
|
| and when I used the =hlookup to find the approximate mark say, 85, I able to
| obtain "B"
|
| however when I reverse the mark to Descending scale...
| and use the same hlookup method with 85 I obtain an "F"
|
| is there a way to find the correct grade if I place the mark in Descending
| scale ??
|
| thanks community for help render :)
|
| --
| oldLearner57



joel

hlookup
 
You would need ot add a new row which is 100-Mark

mark : 90 80 60 40 30 0
Nmark:10 20 40 60 80 90
grade A B C D E F



Then take the grade ans subtract from 100 and lookup in the Nmark row.
Mark

"tikchye_oldLearner57" wrote:

hi community

when i created a table horizontally, a value from Ascending scale...
example:

mark: 0 30 40 60 80 90
grade F E D C B A

and when I used the =hlookup to find the approximate mark say, 85, I able to
obtain "B"

however when I reverse the mark to Descending scale...
and use the same hlookup method with 85 I obtain an "F"

is there a way to find the correct grade if I place the mark in Descending
scale ??

thanks community for help render :)

--
oldLearner57



All times are GMT +1. The time now is 12:29 AM.

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