Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

VLookup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bonnie - 26 Oct 2007 20:14 GMT
Hello,
I am creating a sales order form for my boss. He would like me to have a
drop down box for the customer name and then would like for the customer # to
automatically pop-up in the box below it.

So I am using a VLookup but can't get it to work. I did try reversing it. So
I put the customer # in, and then it found the customer name, but it will not
work the other way around like the boss wants it to.

Any suggestions?
Pete_UK - 26 Oct 2007 20:37 GMT
If your lookup table is like this:

Cust ID       Name
000121       Joe Smith
000345       Fred Bloggs

etc, then VLOOKUP will not work, as the lookup value needs to be in
the left hand column of the table. You could duplicate the Customer ID
column like this:

Cust ID       Name             Cust ID
000121       Joe Smith        000121
000345       Fred Bloggs     000345

then use VLOOKUP on the name, or you can use an INDEX/MATCH
combination, which will allow you to get the ID from the left of your
name, as in the first table.

Hope this helps.

Pete

> Hello,
> I am creating a sales order form for my boss. He would like me to have a
[quoted text clipped - 6 lines]
>
> Any suggestions?
Bonnie - 26 Oct 2007 21:13 GMT
Thank you so much. That was so simple! You just made my day.

> If your lookup table is like this:
>
[quoted text clipped - 28 lines]
> >
> > Any suggestions?
Pete_UK - 26 Oct 2007 23:46 GMT
Well, I'm glad about that - thanks for feeding back.

Pete

> Thank you so much. That was so simple! You just made my day.
>
[quoted text clipped - 32 lines]
>
> - Show quoted text -
RagDyer - 26 Oct 2007 20:41 GMT
With Vlookup(), the lookup value must be to the left of the lookup array
containing the values your looking to return.
So, in your case, the name should be in Column A, and the customer number
must be in any column to the right.
If your datalist has the number in the left most column, then you'll have to
use the Index - Match combination.

You index the column that you want returned (number col.), and use Match to
find the pertinent row in that column, which references the column
containing the name.

For example:

=Index(C1:C100,Match(K1,D1:D100,0))

Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> Hello,
> I am creating a sales order form for my boss. He would like me to have a
[quoted text clipped - 9 lines]
>
> Any suggestions?
Bonnie - 26 Oct 2007 21:15 GMT
How was I missing that!! Thank you!

> With Vlookup(), the lookup value must be to the left of the lookup array
> containing the values your looking to return.
[quoted text clipped - 24 lines]
> >
> > Any suggestions?
RagDyeR - 27 Oct 2007 16:09 GMT
Appreciate the feed-back.
Signature


Regards,

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

How was I missing that!! Thank you!

"RagDyer" wrote:

> With Vlookup(), the lookup value must be to the left of the lookup array
> containing the values your looking to return.
[quoted text clipped - 29 lines]
> >
> > Any suggestions?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.