Updating Tables

RichardMGreen

Well-known Member
Joined
Feb 20, 2006
Messages
2,177
Hi all

Bit of an oddity here (for me at least).
I've got some table which are used as master lists for group items. E.g.
Item 1 Group 1
Item 2 Group 1
Item 3 Group 2
Item 4 Group 2
Item 5 Group 3
Item 6 Group 3
and so on.

I've also got some tables where data is imported automatically.

What I want to do is check the imported tables for items that are not in the master tables (e.g. Item 7), flag it up somehow, add it to the master list and let the user know it needs adding to a group.

That gives me two questions:-
1) Is it possible?
2) If it is, where would I start?

All help greatly appreciated.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Not sure I understand exactly what you are looking for, but this always helped me find records that do not match.

SELECT
ID
FROM
Table1
LEFT JOIN
Table2
ON Table1.ID = Table2.ID
WHERE
Table2.ID IS NULL

UNION

SELECT
Table2.ID
FROM
Table2
LEFT JOIN
Table1
ON Table2.ID = Table1.ID
WHERE
Table1.ID IS NULL
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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