# querying

#### Amit112

##### Board Regular
Hi guys,
I am still not getting this. Do I need extra tables or special code but its still not working.
I was giving theoretical problems to simplfiy it but I will give the precise problem here.

There are 3 fields:
1. Part Number
2. Bore Size
3. GM Part Number

if Part Number = 600002 then
Bore size = 58
GM part number = 12591004

if part number = 600003
Bore size = 58
GM part number = 12593214

if part number = N/A
bore size = 65
GM part number = 12589382

if part number = 600004
bore size = 72
GM part number = 12591846

if part number = 600000
bore size = 77
GM part number = 12588244

if part number = 600001
bore size = 72
GM part number 12593591

- so I am actually basing it on Part number
is there a simple way to do this
thanks again

### Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

#### timwangTM

##### New Member
Setup one tabel (e.g. Table1) to store what you addressed here as master data. If you have any other table (e.g. Table2) which have the Part Number field. You just need setup one SELECT query to link master data (in Table1) to Table2.

#### Amit112

##### Board Regular
Thank you.

Replies
1
Views
529
Replies
2
Views
359
Replies
6
Views
161
Replies
4
Views
467
Replies
1
Views
11K

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,151,825
Messages
5,766,663
Members
425,367
Latest member
Boboka

### 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.

### Which adblocker are you using?

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

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