Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Compare to two sheets in one excel file to evaluate and combine whereidentical.

I have one worksheet with data on 2 sheets. I need to match up the
product id and and copy the value from the 2nd sheet. I have one
sheet that has the product id, description and qty. The second has
the product id and the price. I would like to have the product id,
description, qty and price on one sheet.

Ex:
Sheet 1
Product id | Description | Qty
ic402 | Candy | 5
ic502 | Oil | 10

Sheet 2
Product id | Price
ic402 | $5.00
ic502 | $10.00

Would LOVE!
Product id | Description | Qty | Price
ic402 | Candy | 5 | $5.00
ic502 | Oil | 10 | $10.00

If anyone could help with a formula.

ps: I have more rows in sheet 2 than sheet 1. Sheet 2 has the price
of all items. Sheet 1 only has what is in stock.

Thanks!
Jason

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default Compare to two sheets in one excel file to evaluate and combine where identical.

Something like this perhaps:
=VLOOKUP(A2,Sheet2!A2:B21,2,FALSE)

This formula goes in the first sheet in the first cell in which you want to
price. Drag the formula down as far as your data goes. This formula assumes
your data in Sheet1 starts in A2 with ID in Column A. It also assumes that
your data in Sheet2 starts in A2 with ID in Column A and Price in Column B.
Your data range in Sheet2 is assumed as A2:B21. Change all these to suit.
HTH Otto

wrote in message
...
I have one worksheet with data on 2 sheets. I need to match up the
product id and and copy the value from the 2nd sheet. I have one
sheet that has the product id, description and qty. The second has
the product id and the price. I would like to have the product id,
description, qty and price on one sheet.

Ex:
Sheet 1
Product id | Description | Qty
ic402 | Candy | 5
ic502 | Oil | 10

Sheet 2
Product id | Price
ic402 | $5.00
ic502 | $10.00

Would LOVE!
Product id | Description | Qty | Price
ic402 | Candy | 5 | $5.00
ic502 | Oil | 10 | $10.00

If anyone could help with a formula.

ps: I have more rows in sheet 2 than sheet 1. Sheet 2 has the price
of all items. Sheet 1 only has what is in stock.

Thanks!
Jason



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
Is there a good program for excel to combine, compare, and edit bo Myles Excel Discussion (Misc queries) 1 July 19th 07 06:46 PM
How do I combine multiple Excel sheets? Tom Excel Discussion (Misc queries) 1 April 15th 06 11:39 AM
Combine excel sheets in layers yarp Excel Discussion (Misc queries) 1 October 5th 05 06:38 PM
How do I combine several sheets into one document in Excel? Extruder Johnny Excel Discussion (Misc queries) 2 July 28th 05 05:44 PM
Combine cell totals from 5 sheets into summary in Excel milor Excel Discussion (Misc queries) 1 June 18th 05 12:42 PM


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