Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Vlookup - Variable look_up value?

Is it possible to use vlookup, or anything else, to assign a designated 4
char code for a manufacturer. That is, I have a list of all unique mfrs, I
have assigned a 4 char code to each. Now I want to go back to my item master
list and assign the 4 char code where the mfr of each item obviously equals
the mfr in my unique list. Any suggestions would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Vlookup - Variable look_up value?

It is assumed that you have a criteria for the code assignment. You could
use a macro to search the list until the criteria is found and put the
appropriate code in an adjacent cell.

Don Guillett
Microsoft MVP Excel
SalesAid Software

"Stcyrk" wrote in message
...
Is it possible to use vlookup, or anything else, to assign a designated 4
char code for a manufacturer. That is, I have a list of all unique mfrs,
I
have assigned a 4 char code to each. Now I want to go back to my item
master
list and assign the 4 char code where the mfr of each item obviously
equals
the mfr in my unique list. Any suggestions would be greatly appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Vlookup - Variable look_up value?

So instead of vlookup, use a macro to compare the mfr of an item to the
unique mfr list, if they are equal, place the 4 char code in an adjacent cell
of that row?

"Don Guillett" wrote:

It is assumed that you have a criteria for the code assignment. You could
use a macro to search the list until the criteria is found and put the
appropriate code in an adjacent cell.

Don Guillett
Microsoft MVP Excel
SalesAid Software

"Stcyrk" wrote in message
...
Is it possible to use vlookup, or anything else, to assign a designated 4
char code for a manufacturer. That is, I have a list of all unique mfrs,
I
have assigned a 4 char code to each. Now I want to go back to my item
master
list and assign the 4 char code where the mfr of each item obviously
equals
the mfr in my unique list. Any suggestions would be greatly appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Vlookup - Variable look_up value?

Create a new sheet with the mfg in column A and the code in column B.

With the mfg name in A2, you could use this formula in an adjacent cell:
=vlookup(a2,sheet2!a:b,2,false)



Stcyrk wrote:

Is it possible to use vlookup, or anything else, to assign a designated 4
char code for a manufacturer. That is, I have a list of all unique mfrs, I
have assigned a 4 char code to each. Now I want to go back to my item master
list and assign the 4 char code where the mfr of each item obviously equals
the mfr in my unique list. Any suggestions would be greatly appreciated.


--

Dave Peterson
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
VLOOKUP variable array references Simon Excel Discussion (Misc queries) 1 June 22nd 07 07:09 PM
vlookup with variable col_index_num 0-0 Wai Wai ^-^ Excel Worksheet Functions 2 May 16th 06 06:15 PM
Variable col_index_num in vlookup Hugh Murfitt Excel Discussion (Misc queries) 1 February 15th 06 12:17 PM
Vlookup using variable path name for range value Jeff Lowenstein Excel Worksheet Functions 1 February 9th 06 01:13 AM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM


All times are GMT +1. The time now is 08:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"