How can VLOOKUP identify between multiple choices for > 1 batch? in Excel Worksheet Functions  
 |  Edit my Profile  |  Help
 
     
  
 
 
 
Ivan Thorn 5/9/2005 2:21 AM PST
  Question
  We are a manufacturing unit and produce mulitple items from one job. So Job
"A" may result in products "B" & "C". VLOOKUP will only find the first
instance when running stock reports as it only searches on 1 column. Is
there a way to have this function look at multiple (2 columns) and return a
value?

 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
arno 5/9/2005 4:30 AM PST
  Answer
  Hi Ivan,

> Is there a way to have this function look at multiple (2
> columns) and return a value?

you can add a column to your data that combines the 2 columns just by
eg. formula in A1 =B1&C1. if this formula is in the first column of
your data, vlookup will find it. However, this will only work correctly
if B1&C1 is a unique value.

arno

 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Ivan 5/9/2005 5:10 AM PST
   
  Thankyou, I feel so stupid to have missed this, but it works a treat

Thanks again



"arno" wrote:

> Hi Ivan,
>
> > Is there a way to have this function look at multiple (2
> > columns) and return a value?
>
> you can add a column to your data that combines the 2 columns just by
> eg. formula in A1 =B1&C1. if this formula is in the first column of
> your data, vlookup will find it. However, this will only work correctly
> if B1&C1 is a unique value.
>
> arno
>
>
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
arno 5/9/2005 5:25 AM PST
   
  Hi Ivan,

> ...it works a treat

glad to hear that. However, pls. consider the link franz suggested. in
my solution you need an extra column with formulas with the "key" to
the database and a simple lookup. the other solution does not require
an extra column, however, the lookup is a bit tricky.

arno

 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Franz 5/9/2005 4:34 AM PST
   
  "Ivan Thorn" <Ivan Thorn@discussions.microsoft.com>ha scritto nel messaggio
C4126CD2-657F-48CB-BEC1-07F38CD179D6@microsoft.com

> We are a manufacturing unit and produce mulitple items from one job.
> So Job "A" may result in products "B" & "C". VLOOKUP will only find
> the first instance when running stock reports as it only searches on
> 1 column. Is there a way to have this function look at multiple (2
> columns) and return a value?


Maybe you can find some ideas at Chip Pearson's site:

http://www.cpearson.com/excel/lookups.htm

--
Hoping to be helpful...

Regards

Franz

----------------------------------------------------------------------------------------
To reply translate from italian InVento (no capital letters)
----------------------------------------------------------------------------------------


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
  Return to Microsoft Communities  Notify me of replies