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 check if all values from table 1 are 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 check if all values from table1 are in table2 in the corresponding SubNetwork for each EUtranCellFDDId in table2, you can use the following SQL query:
codeSELECT DISTINCT t1.SubNetwork, t1.EUtranFreqRelationId FROM table1 t1 WHERE NOT EXISTS ( SELECT 1 FROM table2 t2 WHERE t1.SubNetwork = t2.SubNetwork AND t1.EUtranFreqRelationId = t2.EUtranFreqRelationId )This query will return all the unique combinations of SubNetwork and EUtranFreqRelationId from table1 that do not exist in table2.
- User
UT is excel tables
- Assistant
To check if all values from Table1 in Excel are in the corresponding SubNetwork for each EUtranCellFDDId in Table2 in Excel, you can perform the following steps:
- Open your Excel workbook containing Table1 and Table2.
- Create a new column in Table1 titled "Exist in Table2".
- In the first cell of the newly created column, enter the formula:
code=IF(COUNTIFS(Table2[SubNetwork],[@SubNetwork],Table2[EUtranFreqRelationId],[@EUtranFreqRelationId])>0,"Yes","No")- Drag the formula down to apply it to all cells in the "Exist in Table2" column.
- The "Exist in Table2" column will now display "Yes" if the corresponding values from Table1 exist in Table2 based on the matching SubNetwork and EUtranFreqRelationId, otherwise, it will display "No".
You can now easily identify which values from Table1 are not present in Table2 based on the "Exist in Table2" column.
- User
I want data in table2
- Assistant
To retrieve the data from Table2 in Excel that corresponds to the values in Table1, you can perform the following steps:
- Open your Excel workbook containing Table1 and Table2.
- Create a new sheet or select an existing sheet where you want to display the data from Table2.
- In the new sheet, enter the following column headers to match the structure of Table2: "SubNetwork", "NodeId", "ENodeBFunctionId", "EUtranCellFDDId", "EUtranFreqRelationId".
- In the first row under the column headers, enter the following formula in each corresponding column:
code=IFERROR(INDEX(Table2[SubNetwork], MATCH([@SubNetwork]&[@EUtranFreqRelationId], Table2[SubNetwork]&Table2[EUtranFreqRelationId], 0)),"")