Excel vlookup with variable information

HNarli

New Member
Joined
Jun 26, 2018
Messages
24
Helloooo,

Is there a way please to lookup information from other spreadsheets based on variable information?
This is quite hard to explain so I’m just going to list out what I have below and hope that someone can make sense of what I am trying to ask!
So this is a little mock up of my scenario:


A B C D
1. PartNo Supplier Qty Discount
2. 8888 Vaxhaul 1 0%
3. 2000 Skoda 5 25%
4. 1234 Honda 3 15%

A2 = I type the part number in the spreadsheet here
B2 = Cell B2 then does a Vlookup based on the part number and pulls the supplier name in
C1 = I type into here the quantity of cars being purchased for example 1
D1- The complicated bit. I would like to use the quantity information in C2 and the supplier name in B2 to cross reference another spreadsheet which will tell me the supplier discount rate based on the number of cars that are being purchased.
For example I would like to us the value in B2 (supplier name) to locate a corresponding spreadsheet saved in C: > Supplier > Discounts > (Filename = Vaxhaul). I would then like to look up cells within this spreadsheet. This spreadsheet is very simple and looks like this.


File Name: Vaxhaul
A B
1. 1 0%
2. 2 10%
3. 3 15%
4. 4 20%
5. 5 25%

So this is where the if the quantity information in C2 matches the value in A1 to A5 you can tell the corresponding discount.
Now some of you may be reading this thinking why don’t I just do one spreadsheet on discount? The reason being is because each of our suppliers gives us different discount! So we need a way of basing the discount on which supplier is chose.

I'd be interested in hearing's peoples thoughts on this. Perhaps it is not doable? But I thought I would ask just in case!
My Excel skills are VERY BASIC, so I would refer some type of in-cell formula if this is possible? I don't understand Macros at the minute.

Thanks in advance for your comments :)
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
This use of numerous files for each Supplier is probably not effcienet and restricts what formulas can be used. It would be better to put all the supplier information into several worksheets within the workbook, especially since it is so simple in nature. Is that acceptable?
 
Upvote 0
Hi, I hope you get this reply as I haven't used this forum for a long time! I don't think this would work. The reason being is my scenario is a very simplistic explanation of a wider network of things. You see we use Excel to produce a quotation but each time we make a quotation we open a template file and then create a copy from this. If we make a new revision of a quote we don't go back to the original template file we make a duplicate of the R0 file we created. So what would happen with the supplier information is it would all the time be updating in the master file but as we make new copies of quotes from older files we would not be using accurate data. Whereas if any file if it were old or new was always pointing to the same file path than the data would always be up-to-date if that makes sense? Putting all the data in one workbook certainly sounds like an easier way of doing things, but I don't think it could work this way for us?
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,572
Members
448,972
Latest member
Shantanu2024

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