#1   Report Post  
neeses
 
Posts: n/a
Default Look up function


Grade 1 2 3, etc.
10,000 10,500 11,000
12,000 12,500 13,000
14,000 14,500 15,000
16,000 16,500 17,000
18,000 18,500 19,000
We have a worksheet that lists numbers in rows and columns. At the top of
each column is a number that represents a grade. What function would we use
to look up the value of a cell from another sheet, compare it to this table,
and return the column €śgrade€ť number? Example, 12,500 should return grade 2.

Thank you for your time and cooperation.

S. Neese
  #2   Report Post  
Max
 
Posts: n/a
Default

Here's one crack at it ..

Assuming the ref table below is in Sheet1, in B1:D6

....1...........2............3
10,000 10,500 11,000
12,000 12,500 13,000
14,000 14,500 15,000
16,000 16,500 17,000
18,000 18,500 19,000


In Sheet2
-------------
Assuming the values: 12500, 17000, 16000 .. etc
are in col A, A2 down

Put in B2:

=IF(ISNA(MATCH($A2,OFFSET(Sheet1!$B$1:$D$1,MATCH(1 ,MMULT(--(Sheet1!$B$2:$D$6
=$A2),{1;1;1}),0),),0)),"",INDEX(Sheet1!$B$1:$D$1, MATCH($A2,OFFSET(Sheet1!$B
$1:$D$1,MATCH(1,MMULT(--(Sheet1!$B$2:$D$6=$A2),{1;1;1}),0),),0)))

(a normal ENTER will do)

Copy B2 down

Col B will return the column "grade" numbers (i.e. 1 or 2 or 3 - from B1:D1
in Sheet1) corresponding to the values in col A from the ref table in
Sheet1. Unmatched values in col A, if any, will return blanks: ""

Adapt to suit ..

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"neeses" wrote in message
...

Grade 1 2 3, etc.
10,000 10,500 11,000
12,000 12,500 13,000
14,000 14,500 15,000
16,000 16,500 17,000
18,000 18,500 19,000
We have a worksheet that lists numbers in rows and columns. At the top of
each column is a number that represents a grade. What function would we

use
to look up the value of a cell from another sheet, compare it to this

table,
and return the column "grade" number? Example, 12,500 should return grade

2.

Thank you for your time and cooperation.

S. Neese



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
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM


All times are GMT +1. The time now is 04:11 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"