Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default vlookup in reverse search direction

One sheet has a huge customer data table with thousands of records.
The second sheet has dozens of customer records. I need to vlookup
from the second sheet for sales rep names, using the customer names as
matching criteria.

The problem is that some sales rep's names, which associate the
customer names, have been changed over years. Because vlookup always
gives me the first occurance of a customer name (and a rep's name),
from the table top to the table bottom, I sometimes get a wrong/old
rep name.

Is it possible that vlookup searchs the last record first, and move
up? Or is there a better approach for my purpose?

Thanks in advance.

HZ

  #2   Report Post  
Posted to microsoft.public.excel.programming
Tim Tim is offline
external usenet poster
 
Posts: 145
Default vlookup in reverse search direction

Why don't you just sort the data in the reverse direction ?

Tim

"Curious" wrote in message
ups.com...
One sheet has a huge customer data table with thousands of records.
The second sheet has dozens of customer records. I need to vlookup
from the second sheet for sales rep names, using the customer names as
matching criteria.

The problem is that some sales rep's names, which associate the
customer names, have been changed over years. Because vlookup always
gives me the first occurance of a customer name (and a rep's name),
from the table top to the table bottom, I sometimes get a wrong/old
rep name.

Is it possible that vlookup searchs the last record first, and move
up? Or is there a better approach for my purpose?

Thanks in advance.

HZ



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default vlookup in reverse search direction

I've found VLOOKUP only to be reliable when the lookup table is sorted
prior to the lookup (giving the same result as you mentioned).

If I understand your problem, your REP table needs to be sorted before
the VLOOPUP with work correctly.

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
reverse cursor/text direction within cell [email protected] Excel Discussion (Misc queries) 4 August 24th 08 06:12 AM
Find - search in upward direction RobN[_2_] Excel Discussion (Misc queries) 4 July 14th 07 02:17 AM
How do I reverse the direction of the tab key Nathan Crump New Users to Excel 2 July 11th 06 02:21 AM
How do I do a Reverse Find/Search in Excel? NumberDocc Excel Worksheet Functions 2 February 27th 06 10:55 PM
Reverse Direction of For-Each-Next? FuzzyDove[_2_] Excel Programming 2 November 23rd 04 11:18 PM


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