#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Double VLookup

I have the following data:

Table 1
Order # picks from Pool this Part #
777777 A1 123
666666 A2 456
555555 A3 789

Table 2
Part # has Qty in Pool
123 1 A2
456 2 A1
789 2 A3

I need a formula that tells me if the part is available from the pool where
the order will pick the part. I was thinking of a double VLookup but I don' t
know how to set up the formula. Perhaps using the IF function but still don't
know how to start.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Double VLookup

Try this:

Table 1 in the range A2:C4
Table 2 in the range A11:C13

Enter this formula in D2 and copy down as needed:

=VLOOKUP(C2,A$11:C$13,3,0)=B2

Will return either TRUE or FALSE

Biff

"Byron720" wrote in message
...
I have the following data:

Table 1
Order # picks from Pool this Part #
777777 A1 123
666666 A2 456
555555 A3 789

Table 2
Part # has Qty in Pool
123 1 A2
456 2 A1
789 2 A3

I need a formula that tells me if the part is available from the pool
where
the order will pick the part. I was thinking of a double VLookup but I
don' t
know how to set up the formula. Perhaps using the IF function but still
don't
know how to start.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Double VLookup

Hi

To get your double lookup, to ensure the part is available in the right
pool, I would insert a column before Order# in Table 1, and before Part#
in table 2

In Table 1, in the new column, enter
=D2&"|"&C2 and copy down
In Table 2 enter
=B2&"|"&D2 and copy down

Then use
=VLOOKUP(A2,Table2!$A$2:$D$1000,3,0)

If the part exists in the Pool, it will return the quantity there,
otherwise it will return #N/A showing that there is no part available.


--
Regards

Roger Govier


"Byron720" wrote in message
...
I have the following data:

Table 1
Order # picks from Pool this Part #
777777 A1 123
666666 A2 456
555555 A3 789

Table 2
Part # has Qty in Pool
123 1 A2
456 2 A1
789 2 A3

I need a formula that tells me if the part is available from the pool
where
the order will pick the part. I was thinking of a double VLookup but I
don' t
know how to set up the formula. Perhaps using the IF function but
still don't
know how to start.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Double VLookup

Thank you Roger.

That's exactly what I did before posting the problem. I know it works fine
so, since I can't really use the double vlookup then I'll go with this
merge-lookup process. One more step but I get the results I want

Byron

"Roger Govier" wrote:

Hi

To get your double lookup, to ensure the part is available in the right
pool, I would insert a column before Order# in Table 1, and before Part#
in table 2

In Table 1, in the new column, enter
=D2&"|"&C2 and copy down
In Table 2 enter
=B2&"|"&D2 and copy down

Then use
=VLOOKUP(A2,Table2!$A$2:$D$1000,3,0)

If the part exists in the Pool, it will return the quantity there,
otherwise it will return #N/A showing that there is no part available.


--
Regards

Roger Govier


"Byron720" wrote in message
...
I have the following data:

Table 1
Order # picks from Pool this Part #
777777 A1 123
666666 A2 456
555555 A3 789

Table 2
Part # has Qty in Pool
123 1 A2
456 2 A1
789 2 A3

I need a formula that tells me if the part is available from the pool
where
the order will pick the part. I was thinking of a double VLookup but I
don' t
know how to set up the formula. Perhaps using the IF function but
still don't
know how to start.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Double VLookup

Hi Byron

Having copied the formula down column A on both sheets as far as the
extent of likely data, you can then hide column A on both sheets.

--
Regards

Roger Govier


"Byron720" wrote in message
...
Thank you Roger.

That's exactly what I did before posting the problem. I know it works
fine
so, since I can't really use the double vlookup then I'll go with this
merge-lookup process. One more step but I get the results I want

Byron

"Roger Govier" wrote:

Hi

To get your double lookup, to ensure the part is available in the
right
pool, I would insert a column before Order# in Table 1, and before
Part#
in table 2

In Table 1, in the new column, enter
=D2&"|"&C2 and copy down
In Table 2 enter
=B2&"|"&D2 and copy down

Then use
=VLOOKUP(A2,Table2!$A$2:$D$1000,3,0)

If the part exists in the Pool, it will return the quantity there,
otherwise it will return #N/A showing that there is no part
available.


--
Regards

Roger Govier


"Byron720" wrote in message
...
I have the following data:

Table 1
Order # picks from Pool this Part #
777777 A1 123
666666 A2 456
555555 A3 789

Table 2
Part # has Qty in Pool
123 1 A2
456 2 A1
789 2 A3

I need a formula that tells me if the part is available from the
pool
where
the order will pick the part. I was thinking of a double VLookup
but I
don' t
know how to set up the formula. Perhaps using the IF function but
still don't
know how to start.








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
Need Help with Double Vlookup The Moose Excel Discussion (Misc queries) 4 October 27th 06 05:34 AM
double vlookup in same function Streep Excel Worksheet Functions 3 August 19th 05 11:13 PM
Vlookup - double criteria Rashid Excel Worksheet Functions 1 March 29th 05 11:39 AM
VLOOKUP - DOUBLE CRITERIA Rashid Excel Worksheet Functions 3 March 29th 05 01:51 AM
Vlookup - double criteria Rashid Excel Worksheet Functions 1 March 28th 05 11:42 PM


All times are GMT +1. The time now is 05:12 PM.

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"