Vlookup - 2 Cells

Michael11

New Member
Joined
Jul 2, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to produce a bill of materials for my work. I have produced a mass list (bill of materials) for this to be broken down unique to the project through vlookup and data validation.

My master bill of materials looks like so;

1593703209493.png


I have managed to reduce both item and size columns so they so unique values only as opposed to countless D20, D32, etc. I require the 2 cells to total a unit cost as above but I keep getting #N/A. The example below should work out as £2.25.

1593703133931.png


Any assistance will be greatly appreciated.

Thank you.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
=XLOOKUP(A2&"|"&B2,Calc!$A$2:$A$22&"|"&Calc!$B$2:$B$22,Calc!$C$2:$C$22,"",0)
 
Upvote 0
Hello,

Thank you for the reply. I have input the code which then opens the documents folder and leaves cell blank?

1593704394560.png
 
Upvote 0
You need to change the sheet name to match your sheet name.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,040
Messages
6,122,806
Members
449,095
Latest member
m_smith_solihull

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