beginner question

shdwfx

New Member
Joined
Feb 24, 2011
Messages
25
Sorry all but I'm a newbie so apologies if the answer is in here somewhere already because I probably might not recognize it. I have a list of material numbers in spreadsheet A and a list of materials with additional related data elements in spreadsheet B. I need a formula to take a material from A, look for a match in B. If there is a match, also look for value 'x'. If both conditions match, give me a result of Yes. I hope I have explained that clearly enough and any help at all is greatly appreciated! :confused:
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
does sheet b also have the matieral number? and is the value x that you are going to be looking for always appear in the same column in sheet b?
 
Upvote 0
in your sheet b, you need to highlight all columns and make sure the data is sorted ascending by the material number.
in sheet a, you will need to additional columns for the formulas, and one for your final result.
so in sheet a you will have the columns
material number,value,material number match,value match
 
Upvote 0
yep I know about the sorting in ascending on the sheet I'm looking up on but why do I need separate columns for material match and value match - I'm doing all this in one formula with the result of that formula in one column. Maybe I'm not explaining correctly.

Spreadsheet A example:
A B C
Material# Exclusion for Canada Exclusion for Mexico
1 (is there an excl?)
2

Spreadsheet B:
Material # Exclusion
1 MX
2 CA
2 MX

I am trying to figure out the formula to enter in cell B2 to look for a match on material number in spreadsheet B. If it finds a match, does the material have an exclusion for Canada. If so, put a Y or Yes in cell B2. Then of course copy it down and over to check for Mexico exclusions.
 
Upvote 0
=vlookup(lookup value,table on sheetb to look in,column to return from table)

so in your case on sheet A in cell b1

=vlookup(a1,highlight the table in sheet b with the material number as your first column you highlight,the column number you are returning material number is column 1 so your exclusion is column 2 in your example)
 
Upvote 0
Here is my 2 cents on this,


Excel Workbook
ABCDE
6Material No.Value X - Entered manuallyResult
7MAT-294440YesValue X and Mat. No Match to Master
8MAT-213350NoData not in Sync
9MAT-186720YesValue X and Mat. No Match to Master
10MAT-261225NoData not in Sync
11MAT-196022NoData not in Sync
12MAT-249547YesValue X and Mat. No Match to Master
13MAT-173228YesValue X and Mat. No Match to Master
14
15Sheet2 = your Sheet B
Sheet3
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,522
Members
452,923
Latest member
JackiG

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