PC Review


Reply
Thread Tools Rate Thread

complex lookup

 
 
Doug
Guest
Posts: n/a
 
      29th Apr 2010
I have a lookup table that I need to reference. based on a 3 digit # such as
"2.22", I need to be able to find the cross section on the lookup table.
Based on numbers across the top and down the left side;
If I have the number 2.22, it will return for me .15 from the table

lookup table (made up values)
.00 .01 .02 .03 .04 ... .09
2.0 .31 .32 .33 .34 .35 ... .50
2.1 .21 .35 .51 .51 .25 ... .85
2.2 .53 .52 .15 .52 .51 ... .81
2.3 .89 .58 .23 .45 .15 ... .15
--
Thank you!
 
Reply With Quote
 
 
 
 
Glenn
Guest
Posts: n/a
 
      29th Apr 2010
Doug wrote:
> I have a lookup table that I need to reference. based on a 3 digit # such as
> "2.22", I need to be able to find the cross section on the lookup table.
> Based on numbers across the top and down the left side;
> If I have the number 2.22, it will return for me .15 from the table
>
> lookup table (made up values)
> .00 .01 .02 .03 .04 ... .09
> 2.0 .31 .32 .33 .34 .35 ... .50
> 2.1 .21 .35 .51 .51 .25 ... .85
> 2.2 .53 .52 .15 .52 .51 ... .81
> 2.3 .89 .58 .23 .45 .15 ... .15



http://www.contextures.com/xlFunctio...ml#IndexMatch2

Assuming your table above is in A1:K5, and 2.22 is in A10, try this:

=INDEX($B$2:$K$5,MATCH(ROUND(A10,1),$A$2:$A$5,0),
MATCH(A10-ROUND(A10,1),$B$1:$K$1,0))
 
Reply With Quote
 
Doug
Guest
Posts: n/a
 
      29th Apr 2010
I am recieving a #N/A in the field. This is what it looks like now that I
modified it to fit what I am doing. Can you see what may be wrong? $E$8 is
the lookup value and the table is in $P$2:$Z$41.

=INDEX($Q$3:$Z$41,MATCH(ROUND($E$8,1),$P$3:$P$41,0),MATCH($E$8-ROUND($E$8,1),$Q$2:$Z$2,0))
--
Thank you!


"Glenn" wrote:

> Doug wrote:
> > I have a lookup table that I need to reference. based on a 3 digit # such as
> > "2.22", I need to be able to find the cross section on the lookup table.
> > Based on numbers across the top and down the left side;
> > If I have the number 2.22, it will return for me .15 from the table
> >
> > lookup table (made up values)
> > .00 .01 .02 .03 .04 ... .09
> > 2.0 .31 .32 .33 .34 .35 ... .50
> > 2.1 .21 .35 .51 .51 .25 ... .85
> > 2.2 .53 .52 .15 .52 .51 ... .81
> > 2.3 .89 .58 .23 .45 .15 ... .15

>
>
> http://www.contextures.com/xlFunctio...ml#IndexMatch2
>
> Assuming your table above is in A1:K5, and 2.22 is in A10, try this:
>
> =INDEX($B$2:$K$5,MATCH(ROUND(A10,1),$A$2:$A$5,0),
> MATCH(A10-ROUND(A10,1),$B$1:$K$1,0))
> .
>

 
Reply With Quote
 
Glenn
Guest
Posts: n/a
 
      29th Apr 2010
Doug wrote:
> I am recieving a #N/A in the field. This is what it looks like now that I
> modified it to fit what I am doing. Can you see what may be wrong? $E$8 is
> the lookup value and the table is in $P$2:$Z$41.
>
> =INDEX($Q$3:$Z$41,MATCH(ROUND($E$8,1),$P$3:$P$41,0),MATCH($E$8-ROUND($E$8,1),$Q$2:$Z$2,0))



If MATCH is unsuccessful in finding a match, it returns the #N/A error value.

Make sure that what looks like a number is actually a number (and not text) in
cell E8, column P and row 2.

One way to convert them would be to copy a blank cell, select the values in
question, then Edit / Paste Special / Values / Add / OK. This will not change
cells that are already numbers.
 
Reply With Quote
 
Doug
Guest
Posts: n/a
 
      29th Apr 2010
Not sure why it is not working. Everything you said makes sense, I went back
and checked all the number formats, etc. I will just have to play around and
maybe look up the details to the functions you gave me. You have helped a
great deal.
--
Thank you!


"Glenn" wrote:

> Doug wrote:
> > I am recieving a #N/A in the field. This is what it looks like now that I
> > modified it to fit what I am doing. Can you see what may be wrong? $E$8 is
> > the lookup value and the table is in $P$2:$Z$41.
> >
> > =INDEX($Q$3:$Z$41,MATCH(ROUND($E$8,1),$P$3:$P$41,0),MATCH($E$8-ROUND($E$8,1),$Q$2:$Z$2,0))

>
>
> If MATCH is unsuccessful in finding a match, it returns the #N/A error value.
>
> Make sure that what looks like a number is actually a number (and not text) in
> cell E8, column P and row 2.
>
> One way to convert them would be to copy a blank cell, select the values in
> question, then Edit / Paste Special / Values / Add / OK. This will not change
> cells that are already numbers.
> .
>

 
Reply With Quote
 
David Heaton
Guest
Posts: n/a
 
      30th Apr 2010
On Apr 30, 8:44*am, Doug <D...@discussions.microsoft.com> wrote:
> Not sure why it is not working. Everything you said makes sense, I went back
> and checked all the number formats, etc. I will just have to play around and
> maybe look up the details to the functions you gave me. *You have helped a
> great deal.
> --
> Thank you!
>
>
>
> "Glenn" wrote:
> > Doug wrote:
> > > I am recieving a #N/A in the field. This is what it looks like now that I
> > > modified it to fit what I am doing. Can you see what may be wrong? $E$8 is
> > > the lookup value and the table is in $P$2:$Z$41.

>
> > > =INDEX($Q$3:$Z$41,MATCH(ROUND($E$8,1),$P$3:$P$41,0),MATCH($E$8-ROUND($E$8,1*),$Q$2:$Z$2,0))

>
> > If MATCH is unsuccessful in finding a match, it returns the #N/A error value.

>
> > Make sure that what looks like a number is actually a number (and not text) in
> > cell E8, column P and row 2.

>
> > One way to convert them would be to copy a blank cell, select the values in
> > question, then Edit / Paste Special / Values / Add / OK. *This will not change
> > cells that are already numbers.
> > .- Hide quoted text -

>
> - Show quoted text -


This isnt going to help you much but the formula isnt working because
despite appearances, the MATCH function doesnt think $E$8-ROUND($E
$8,1) matches the value in your table.

I cant think why not. If you seperate the formula out and do A1=B1
(being the round function alone and the number in your grid) excel
returns TRUE, so the values are the same. It must be something about
the MATCH function

regards


David
 
Reply With Quote
 
Glenn
Guest
Posts: n/a
 
      30th Apr 2010
Doug wrote:
> Not sure why it is not working. Everything you said makes sense, I went back
> and checked all the number formats, etc. I will just have to play around and
> maybe look up the details to the functions you gave me. You have helped a
> great deal.



Did you just check the number formats, or did you actually confirm that there
are numbers in the cells, following the directions I gave previously?

Also, make sure that the numbers exactly match what you expect them to be, for
example make sure it is .02 in the cell and not .020000001 formatted to show
only 2 decimal places.
 
Reply With Quote
 
David Heaton
Guest
Posts: n/a
 
      2nd May 2010
On Apr 30, 11:06*pm, Glenn <addr...@not.valid> wrote:
> Doug wrote:
> > Not sure why it is not working. Everything you said makes sense, I wentback
> > and checked all the number formats, etc. I will just have to play around and
> > maybe look up the details to the functions you gave me. *You have helped a
> > great deal.

>
> Did you just check the number formats, or did you actually confirm that there
> are numbers in the cells, following the directions I gave previously?
>
> Also, make sure that the numbers exactly match what you expect them to be, for
> example make sure it is .02 in the cell and not .020000001 formatted to show
> only 2 decimal places.


Glenn / Doug

The only way I managed to get this to work, was to make sure
'Precision as displayed' was selected in the OPTIONS.

the ROUND function is causing the MATCH function to fail, this seems
to resolve the problem

Regards

David
 
Reply With Quote
 
Bernd P
Guest
Posts: n/a
 
      3rd May 2010
Hello Doug,

Array-enter
=INDEX(Q3:Z41,MATCH(TEXT(FLOOR(E8,0.1),"0.0"),TEXT(P3:P41,"0.0"),
0),MATCH(TEXT(MOD(E8,0.1),".00"),TEXT(Q2:Z2,".00"),0))

Regards,
Bernd
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex Lookup Drew949 Microsoft Excel Misc 3 1st Sep 2009 11:28 PM
Complex Lookup Jason Lepack Microsoft Excel Worksheet Functions 2 4th Feb 2007 04:59 PM
Complex lookup =?Utf-8?B?Ym9iYg==?= Microsoft Excel Worksheet Functions 0 14th Oct 2006 08:33 PM
Complex Lookup? aileen Microsoft Excel Programming 1 20th Jul 2006 01:50 PM
complex lookup mroach@ogclearinghouse.com Microsoft Excel Misc 1 17th Dec 2004 02:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:16 PM.