vlookup in reverse

A

AJSloss

I am trying to use a function that will read a table in reverse (from the
right column to the left column) and so far I have this:

-table range is named "sked" and goes from a1:b5
-cell d1 is the value I want looked up

=index(a1:a5, match(d1, b1:b5, 0))

that works perfectly, however, is there a way to to use "sked" in that
formula so that it would look something like:

=index(1st column of "sked", match(d1, 2nd column of "sked", 0))
 
R

RagDyeR

Try this:

=INDEX(sked,MATCH(D1,INDEX(sked,,2),0),1)
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================


I am trying to use a function that will read a table in reverse (from the
right column to the left column) and so far I have this:

-table range is named "sked" and goes from a1:b5
-cell d1 is the value I want looked up

=index(a1:a5, match(d1, b1:b5, 0))

that works perfectly, however, is there a way to to use "sked" in that
formula so that it would look something like:

=index(1st column of "sked", match(d1, 2nd column of "sked", 0))
 
S

Shane Devenshire

If you have only 2 columm why not give them each a name. Using more INDEX
function than your first example is going to slow calculations down.

=index(Sked1st,match(d1, Sked2nd, 0))
 
R

Ragdyer

How can you measure the calc time difference for 2 columns and 5 rows?

OH, you say maybe there's really more then 5 rows.

Well, maybe there's also more then 2 columns.

Most OPs are not looking for a fish ... they're looking to learn how to
fish!<g>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top