Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default finding values in a table using 2 criteria (changed)

A B rating 60 65 70 75 80 85 90 95 100
74 E A 0 0 0 0 0 0 0 0 0
84 C B 0 0 0 0 0 0 0 0 0
86 D C 5 4 4 3 3 2 1 0 0
70 D D 8 7 5 4 4 3 2 1 0
72 E E 9 8 7 6 5 4 3 2 1
88 C
52 E

I am looking for help on the following problem.
In Column A I have values from 65 to 99 (random) representing a percentage.
In column B I have ratings from A to E.
Also I have a table with (max) relative positions in the columns(65, 70, 75,
80, 85, 90, 95, 100) and a percentage depending on these ratings on rows, so
this is a matrix of 8 columns by 5 rows.
The actual relative position is shown in cell A3, the rating in cell B3. Now
I want to compare the value in A3 with the max. relative position in the
table, lookup the value that corresponds with the rating in B3, and place it
in cell C3 and so on.
I have tried combining HLOOKUP and VLOOKUP, but that seems to be the wrong
solution.
Does anybody here have another bright idea?
I can't include a copy of the sheet, but I hope the description helps.
Looking forward to your solutions.

Willem.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default finding values in a table using 2 criteria (changed)

Hi Willem,

First, include a column with 0 in the heading, so 52 can be found as well.
You'll probably have to shift all the values one column, so it looks like this:

rating
0
60
65
70
75
80
85
90
95
100

A
0
0
0
0
0
0
0
0
0
#N/A

B
0
0
0
0
0
0
0
0
0
#N/A

C
5
4
4
3
3
2
1
0
0
#N/A

D
8
7
5
4
4
3
2
1
0
#N/A

E
9
8
7
6
5
4
3
2
1
#N/A



With your table in C1:M6 (including the heading):

=HLOOKUP(A3,$D$1:$M$6,MATCH(B3,$C$2:$C$6,0)+1)


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Willem" wrote in message ...
|A B rating 60 65 70 75 80 85 90 95 100
| 74 E A 0 0 0 0 0 0 0 0 0
| 84 C B 0 0 0 0 0 0 0 0 0
| 86 D C 5 4 4 3 3 2 1 0 0
| 70 D D 8 7 5 4 4 3 2 1 0
| 72 E E 9 8 7 6 5 4 3 2 1
| 88 C
| 52 E
|
| I am looking for help on the following problem.
| In Column A I have values from 65 to 99 (random) representing a percentage.
| In column B I have ratings from A to E.
| Also I have a table with (max) relative positions in the columns(65, 70, 75,
| 80, 85, 90, 95, 100) and a percentage depending on these ratings on rows, so
| this is a matrix of 8 columns by 5 rows.
| The actual relative position is shown in cell A3, the rating in cell B3. Now
| I want to compare the value in A3 with the max. relative position in the
| table, lookup the value that corresponds with the rating in B3, and place it
| in cell C3 and so on.
| I have tried combining HLOOKUP and VLOOKUP, but that seems to be the wrong
| solution.
| Does anybody here have another bright idea?
| I can't include a copy of the sheet, but I hope the description helps.
| Looking forward to your solutions.
|
| Willem.
|
|
|


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default finding values in a table using 2 criteria (changed)

I should have known; the table format is screwed up.

Transpose them to a horizontal layout

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Niek Otten" wrote in message ...
| Hi Willem,
|
| First, include a column with 0 in the heading, so 52 can be found as well.
| You'll probably have to shift all the values one column, so it looks like this:
|
| rating
| 0
| 60
| 65
| 70
| 75
| 80
| 85
| 90
| 95
| 100
|
| A
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| #N/A
|
| B
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| #N/A
|
| C
| 5
| 4
| 4
| 3
| 3
| 2
| 1
| 0
| 0
| #N/A
|
| D
| 8
| 7
| 5
| 4
| 4
| 3
| 2
| 1
| 0
| #N/A
|
| E
| 9
| 8
| 7
| 6
| 5
| 4
| 3
| 2
| 1
| #N/A
|
|
|
| With your table in C1:M6 (including the heading):
|
| =HLOOKUP(A3,$D$1:$M$6,MATCH(B3,$C$2:$C$6,0)+1)
|
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Willem" wrote in message ...
||A B rating 60 65 70 75 80 85 90 95 100
|| 74 E A 0 0 0 0 0 0 0 0 0
|| 84 C B 0 0 0 0 0 0 0 0 0
|| 86 D C 5 4 4 3 3 2 1 0 0
|| 70 D D 8 7 5 4 4 3 2 1 0
|| 72 E E 9 8 7 6 5 4 3 2 1
|| 88 C
|| 52 E
||
|| I am looking for help on the following problem.
|| In Column A I have values from 65 to 99 (random) representing a percentage.
|| In column B I have ratings from A to E.
|| Also I have a table with (max) relative positions in the columns(65, 70, 75,
|| 80, 85, 90, 95, 100) and a percentage depending on these ratings on rows, so
|| this is a matrix of 8 columns by 5 rows.
|| The actual relative position is shown in cell A3, the rating in cell B3. Now
|| I want to compare the value in A3 with the max. relative position in the
|| table, lookup the value that corresponds with the rating in B3, and place it
|| in cell C3 and so on.
|| I have tried combining HLOOKUP and VLOOKUP, but that seems to be the wrong
|| solution.
|| Does anybody here have another bright idea?
|| I can't include a copy of the sheet, but I hope the description helps.
|| Looking forward to your solutions.
||
|| Willem.
||
||
||
|
|


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default finding values in a table using 2 criteria (changed)

hmm thanks?
Is there a reason why I can't find the data in a simple matrix? It looks
like an extra step that should not be necessary.
doesn't look very sophisticated, but I will try anyway.
Any other solutions are welcome!

Willem.

"Niek Otten" wrote:

I should have known; the table format is screwed up.

Transpose them to a horizontal layout

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Niek Otten" wrote in message ...
| Hi Willem,
|
| First, include a column with 0 in the heading, so 52 can be found as well.
| You'll probably have to shift all the values one column, so it looks like this:
|
| rating
| 0
| 60
| 65
| 70
| 75
| 80
| 85
| 90
| 95
| 100
|
| A
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| #N/A
|
| B
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| #N/A
|
| C
| 5
| 4
| 4
| 3
| 3
| 2
| 1
| 0
| 0
| #N/A
|
| D
| 8
| 7
| 5
| 4
| 4
| 3
| 2
| 1
| 0
| #N/A
|
| E
| 9
| 8
| 7
| 6
| 5
| 4
| 3
| 2
| 1
| #N/A
|
|
|
| With your table in C1:M6 (including the heading):
|
| =HLOOKUP(A3,$D$1:$M$6,MATCH(B3,$C$2:$C$6,0)+1)
|
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Willem" wrote in message ...
||A B rating 60 65 70 75 80 85 90 95 100
|| 74 E A 0 0 0 0 0 0 0 0 0
|| 84 C B 0 0 0 0 0 0 0 0 0
|| 86 D C 5 4 4 3 3 2 1 0 0
|| 70 D D 8 7 5 4 4 3 2 1 0
|| 72 E E 9 8 7 6 5 4 3 2 1
|| 88 C
|| 52 E
||
|| I am looking for help on the following problem.
|| In Column A I have values from 65 to 99 (random) representing a percentage.
|| In column B I have ratings from A to E.
|| Also I have a table with (max) relative positions in the columns(65, 70, 75,
|| 80, 85, 90, 95, 100) and a percentage depending on these ratings on rows, so
|| this is a matrix of 8 columns by 5 rows.
|| The actual relative position is shown in cell A3, the rating in cell B3. Now
|| I want to compare the value in A3 with the max. relative position in the
|| table, lookup the value that corresponds with the rating in B3, and place it
|| in cell C3 and so on.
|| I have tried combining HLOOKUP and VLOOKUP, but that seems to be the wrong
|| solution.
|| Does anybody here have another bright idea?
|| I can't include a copy of the sheet, but I hope the description helps.
|| Looking forward to your solutions.
||
|| Willem.
||
||
||
|
|



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
Finding Average with Criteria Mike R. Excel Worksheet Functions 4 September 17th 07 06:50 AM
summing values in a data table based on criteria in another column Dave F Excel Worksheet Functions 7 August 26th 06 04:36 PM
finding an entry from two criteria. garyablett Excel Worksheet Functions 5 May 10th 06 12:16 AM
finding values and displaying adjacent values willy3211 Excel Worksheet Functions 1 October 12th 05 04:49 PM
Finding One Value, Matching Three Criteria cattle mgr Excel Discussion (Misc queries) 2 August 29th 05 08:32 PM


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