VBA Code

ragnar12

Board Regular
Joined
May 1, 2013
Messages
119
I'm new to access and I don't really know how to ask it to do what I want it to do. I need two columns to match, although side by side they do not. It will work as more of a Find function I would assume. I realize sql is the normal language, but am having trouble getting it to work (since I am not sure what to tell it).

So it may originally look like:
Table 1
a 14
b 15
c 16

Table 2
c 16
a 14
b 15

Need it to match and look like:
New Table (Query)
a 14 14
b 15 15
c 16 16

Any suggestions?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
This will give you the results you want.

SELECT [Table 1].Field1, [Table 1].Field2, [Table 2].Field2
FROM [Table 1]
LEFT JOIN [Table 2] ON [Table 1].Field1 =[Table 2].Field1
 
Upvote 0
a14
b15
c16
c16
a14
b15
***
a1414
b1515
c1616
formula
*=OFFSET($C$6,MATCH(C18,$C$7:$C$9,0),1)
**=OFFSET($C$11,MATCH(C18,$C$12:$C$14,0),1)

<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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