Excel Formula across multiple workbooks

exex-Large

New Member
Joined
Nov 8, 2005
Messages
2
Hi,

I need help (many people have said that I do, hehehe). I have 3 workbooks containing 1 sheet in each.

Book1 has unique part numbers in column A, in a sheet called parts.

Book2 has part number, car and colour details in a sheet called details, and this sheet has duplicate entries of part number.

Book3 has a sheet called cost which has 2 columns, a car (unique) and cost.

I would like a formula to use each part number in Book1 to access all occurences of the part number in Book2. For each of the part numbers found in Book2 If the colour is equal to red use the car column to reference the car column in Book3 to determine the cost. Because there are multiple occurrences in Book2 the cost will have to be summed and placed in column B in the parts sheet in Book1.

Can I do this with a formula? if not would VBA be more advisable and if so would it be possible to give me an example of the code?

Please help, I am going mad with frustration.

Many thanks

Gary

:cry:
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
It would be easier, perhaps if all 3 sheets were in one file and provided each table and some type of common link, you could use VLOOKUP or HLOOKUP, or just plain old LOOKUP functions......depending on exactly what it is you are trying to accomplish..if possible, show sample of data using the HTML maker and sample of desired output...makes assisting 10 times easier
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,913
Members
448,532
Latest member
9Kimo3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top