I'm facing a problem where I have a two excel sheets from SalesForce CRM which I need to use to filter out articles which are in a certain category. These are originally downloaded from the SF knowledge platform and the correspond to the article-type and category objects (tables) in SalesForce that have been dumped by the data loader. Here are samples from each:
Categories
ID PARENTID GROUPNAME DATACATEGORYNAME
02oC00000007RoyIAE ka2C00000004RqwIAE All_Products Product1
02oC00000007TAiIAM ka2C00000004IXuIAM All_Products Product1
02oC00000007TB2IAM ka2C00000004RpFIAU All_Products Product2
02oC00000007TPYIA2 ka2C00000004IckIAE All_Products Product2
Article
ID TITLE
ka2C00000004RqwIAE How to do this
ka2C00000004RqmIAE How to do that
ka2C00000004RpFIAU My product exploded
ka2C00000004RpFXYZ Some title
ka2C00000004RFbIAM How does group licensing work?
The problem I'm faced with is that I only want the Articles in Article where Categories.DATACATEGORYNAME is "Product2." In C-Variant psuedocode, I'd do something like:
List<CustomObject> final = new List<CustomObject>(); //Note that customObject would have fields for each of my final desired values
for (row c in categories)
{
for (row a in article)
{
if (c.PARENTID == a.ID)
{
final.add(new CustomObject { ID = a.ID, TITLE = a.TITLE });
}
}
}
I'd then take this list and print it to a CSV file or something like that.
Using an alternative technology like SQL, I'd do something like an "in" query. What I'm wondering is: Is there a way to do something similar to this in Excel?