Help importing data from one table to another based on a criteria set.

Drakena

New Member
Joined
Aug 1, 2016
Messages
3
Hi,

I need some help trying to figure out why the following is not working, I have a data table on one sheet that is exported from an external database. I then have a summary table that contains the results of search and other data which is then published onto an internal site. Below is sample data used to illustrate the issue:

Table 1 (Sheet: Export_Data)
ABC
1IDName
Subject
21234Brad[English] [Science]
31235Sharon[Math] [Science]
41236Mike[Math] [English] [Psychology]

<tbody>
</tbody>
Desired Results:
Table 2 (Summary_English Students)

AB
1ID
Name
21234Brad
31236Mike

<tbody>
</tbody>

Formula Currently In Use on B2 in Table 2:

{=IFERROR(INDEX(Export_Data!A$2:A$50,SMALL(IF(MATCH("*"&"English"&"*",Export_Data!$C:$C,0),ROW(Export_Data!A$2:C$500)-ROW(Export_Data!A$2)+1),ROWS(Export_Data!A$2:Export_Data!A2))),"-")}

When searching through the Names I am able to pull out the required data, however when searching through the Subject column the results to not provide me with the actual results. I have over 300 entries to filter through and would prefer not to do this by hand, but instead just display the ID and Name of all students studying English.

I cannot tell if it is [square brackets] causing the issues, seeing as that is the only difference in the columns. The data is exported from the external database like this and cannot be changed, so I need to find a way to search for and filter the data as it is and display is on the second worksheet.

Any help at all with this would be greatly appreciated.

Thank you.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Square brackets are used in formulas to separate workbook names from worksheet names. This may be what is causing the problem, although I am not sure why it would in this case.

Can you add a helper column using a formula with 2 SUBSTITUTE functions that would change each [ or ] to a space (or other harmless character) such as:
D2 = =SUBSTITUTE(SUBSTITUTE(C2,"[",""),"]","")
and then point the failing formula to that column?
 
Upvote 0

Forum statistics

Threads
1,215,945
Messages
6,127,856
Members
449,411
Latest member
adunn_23

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