#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default lookups

I would like to combine the data in columns B, C, D, and E contained
on the "Sales" worksheet with the data on the "Inventory" worksheet,
when the part_numbers in column A are a match.
What formula would give me results as shown in the example?
TIA

Sales ws:
A B C D E
A123 1.3 1.4 1.5 1.6
A124 0.8 1.1 1.5 2.1
12Q3 1.0 1.1 1.2 3.5

Inventory ws:
A B C D E F G
A110 43 yes
A125 5 yes
12Q3 1.0 1.1 1.2 3.5 12 no
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default lookups



--

HTH

RP

"milus" wrote in message
m...
I would like to combine the data in columns B, C, D, and E contained
on the "Sales" worksheet with the data on the "Inventory" worksheet,
when the part_numbers in column A are a match.
What formula would give me results as shown in the example?
TIA

Sales ws:
A B C D E
A123 1.3 1.4 1.5 1.6
A124 0.8 1.1 1.5 2.1
12Q3 1.0 1.1 1.2 3.5

Inventory ws:
A B C D E F G
A110 43 yes
A125 5 yes
12Q3 1.0 1.1 1.2 3.5 12 no



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default lookups

=VLOOKUP(A1,Inventory!A1:G100,7.FALSE)

7 is the column index

--

HTH

RP

"milus" wrote in message
m...
I would like to combine the data in columns B, C, D, and E contained
on the "Sales" worksheet with the data on the "Inventory" worksheet,
when the part_numbers in column A are a match.
What formula would give me results as shown in the example?
TIA

Sales ws:
A B C D E
A123 1.3 1.4 1.5 1.6
A124 0.8 1.1 1.5 2.1
12Q3 1.0 1.1 1.2 3.5

Inventory ws:
A B C D E F G
A110 43 yes
A125 5 yes
12Q3 1.0 1.1 1.2 3.5 12 no



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default lookups

"Bob Phillips" wrote in message ...
=VLOOKUP(A1,Inventory!A1:G100,7.FALSE)

7 is the column index

--

HTH

RP

"milus" wrote in message
m...
I would like to combine the data in columns B, C, D, and E contained
on the "Sales" worksheet with the data on the "Inventory" worksheet,
when the part_numbers in column A are a match.
What formula would give me results as shown in the example?
TIA

Sales ws:
A B C D E
A123 1.3 1.4 1.5 1.6
A124 0.8 1.1 1.5 2.1
12Q3 1.0 1.1 1.2 3.5

Inventory ws:
A B C D E F G
A110 43 yes
A125 5 yes
12Q3 1.0 1.1 1.2 3.5 12 no


Bob
Thanks. I changed the formula to:
=VLOOKUP(A1,Sales!A1:G100,2,FALSE)
This works for matching part numbers but results in #N/A's in non
matches. Is there a way to leave blank cells instead?
Pat
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default lookups

=IF(ISERROR(MATCH(A1,Sales!A1:A100,0)),"",VLOOKUP( A1,Sales!A1:G100,2,FALSE))


--

HTH

RP

"milus" wrote in message
m...
"Bob Phillips" wrote in message

...
=VLOOKUP(A1,Inventory!A1:G100,7.FALSE)

7 is the column index

--

HTH

RP

"milus" wrote in message
m...
I would like to combine the data in columns B, C, D, and E contained
on the "Sales" worksheet with the data on the "Inventory" worksheet,
when the part_numbers in column A are a match.
What formula would give me results as shown in the example?
TIA

Sales ws:
A B C D E
A123 1.3 1.4 1.5 1.6
A124 0.8 1.1 1.5 2.1
12Q3 1.0 1.1 1.2 3.5

Inventory ws:
A B C D E F G
A110 43 yes
A125 5 yes
12Q3 1.0 1.1 1.2 3.5 12 no


Bob
Thanks. I changed the formula to:
=VLOOKUP(A1,Sales!A1:G100,2,FALSE)
This works for matching part numbers but results in #N/A's in non
matches. Is there a way to leave blank cells instead?
Pat





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default lookups

"Bob Phillips" wrote in message ...
snip


Bob -
Thanks again. That did it.
Pat
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
Lookups and ifs! Annie Excel Worksheet Functions 2 May 13th 10 01:12 PM
Lookups Bruce D. Excel Discussion (Misc queries) 6 April 12th 10 02:11 PM
Lookups? lightbulb Excel Discussion (Misc queries) 3 December 21st 09 03:35 PM
need help with V lookups Scottinphx Excel Worksheet Functions 3 August 4th 06 10:04 PM
LOOKUPS - Creating LOOKUPs where two different values must BOTH be satisfied. Mr Wiffy Excel Worksheet Functions 2 May 16th 05 04:29 AM


All times are GMT +1. The time now is 09:54 AM.

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"