I have table1: SubNetwork EUtranFreqRelationId Akmolaregion 125 Akmolaregion 150…
- User
I have table1: SubNetwork EUtranFreqRelationId Akmola_region 125 Akmola_region 150 Akmola_region 6200 Akmola_region 1302 Aktau 1302 Aktau 150 Aktau 6200 Aktau 1679 Aktau 1850 Aktau 500 Aktau 1652 Aktau 6250
And I need to see which values from table 1 EUtranFreqRelationId are not in table 2 in corresponding SubNetwork for each EUtranCellFDDId table2 SubNetwork NodeId ENodeBFunctionId EUtranCellFDDId EUtranFreqRelationId Akmola_region ERBS_12324_POLTAVKA_1_KK 1 12324A4L-2X2 125 #N/A Akmola_region ERBS_12324_POLTAVKA_1_KK 1 12324A4L-2X2 150 #N/A Akmola_region ERBS_12324_POLTAVKA_1_KK 1 12324A4L-2X2 6200 #N/A Akmola_region ERBS_12324_POLTAVKA_1_KK 1 12324A4L-2X2 1302 #N/A Akmola_region ERBS_12360_SHUISKOE_1_KK 1 12360A4L-2X2 6200 #N/A Akmola_region ERBS_12360_SHUISKOE_1_KK 1 12360A4L-2X2 125 #N/A Akmola_region ERBS_12360_SHUISKOE_1_KK 1 12360A4L-2X2 150 #N/A Akmola_region ERBS_12360_SHUISKOE_1_KK 1 12360A4L-2X2 1302 #N/A Akmola_region ERBS_12360_SHUISKOE_1_KK 1 12360B4L-2X2 125 #N/A Akmola_region ERBS_12360_SHUISKOE_1_KK 1 12360B4L-2X2 1302 #N/A Akmola_region ERBS_12360_SHUISKOE_1_KK 1 12360B4L-2X2 150 #N/A Akmola_region ERBS_12360_SHUISKOE_1_KK 1 12360B4L-2X2 6200 #N/A Akmola_region ERBS_12371_BESTOGAY_1_KK 1 12371A4L-2X2 125 #N/A Akmola_region ERBS_12371_BESTOGAY_1_KK 1 12371A4L-2X2 6200 #N/A Akmola_region ERBS_12371_BESTOGAY_1_KK 1 12371A4L-2X2 150 #N/A Akmola_region ERBS_12371_BESTOGAY_1_KK 1 12371A4L-2X2 1302 #N/A Akmola_region ERBS_12371_BESTOGAY_1_KK 1 12371B4L-2X2 125 #N/A Akmola_region ERBS_12371_BESTOGAY_1_KK 1 12371B4L-2X2 6200 #N/A Akmola_region ERBS_12371_BESTOGAY_1_KK 1 12371B4L-2X2 150 #N/A Aktau ERBS_51020_DISTR7_2_KKT 1 51020C5T-2X2 1850 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021A0L-2X2 1302 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021A0L-2X2 150 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021A0L-2X2 6200 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021A1L-2X2 6200 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021A1L-2X2 150 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021A1L-2X2 1302 Aktau ERBS_51021_TREEOFLIFE_2_KKT 1 51021A4L-2X2 1302 Aktau ERBS_51021_TREEOFLIFE_2_KKT 1 51021A4L-2X2 150 Aktau ERBS_51021_TREEOFLIFE_2_KKT 1 51021A4L-2X2 6200 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021B0L-2X2 1302 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021B0L-2X2 6200 Aktau ERBS_51021_TREEOFLIFE_1_KKT 1 51021B0L-2X2 150
- Assistant
To find the values from table 1 (EUtranFreqRelationId) that are not present in table 2 (EUtranFreqRelationId) for each corresponding SubNetwork, you can use a left join with table 2 and filter the results where table 2 values are null.
The query would look like this:
codeSELECT table1.SubNetwork, table1.EUtranFreqRelationId FROM table1 LEFT JOIN table2 ON table1.SubNetwork = table2.SubNetwork AND table1.EUtranFreqRelationId = table2.EUtranFreqRelationId WHERE table2.EUtranCellFDDId IS NULLThis will return the SubNetwork and EUtranFreqRelationId values from table 1 that are not present in table 2.
- User
Excel
- Assistant
If you are working with Excel and you have both tables in separate sheets, you can use the VLOOKUP function to find the values from table 1 that are not in table 2.
Assuming your table 1 is in Sheet1 and table 2 is in Sheet2, you can add a column in Sheet1 to check if the EUtranFreqRelationId is present in table 2.
In cell C2 of Sheet1, enter the formula:
code=IF(ISNA(VLOOKUP(B2,Sheet2!E:E,1,FALSE)),"#N/A","")This formula will check if the EUtranFreqRelationId in B2 of Sheet1 exists in column E of Sheet2. If it does not exist, it will return "#N/A", otherwise it will leave the cell blank.
Drag this formula down in column C for all the rows in Sheet1.
Now you can filter the values in column C that have the "#N/A" value, which indicates they are not present in table 2.