Hi, I'm finding it difficult to describe exactly what I'm looking to do (which may be why I haven't found a solution) but I think that the example I give below is relatively straightforward to understand.
I have a list of fruit in column A and in column B I have a list of the names the eat that fruit in a many:many relationship (there are also many other columns but I'll leave them out for the sake of simplicity) e.g.
Banana Peter
Banana James
Banana Laurie
Orange Laurie
Orange James
Apple Peter
Apple Paul
I'm trying to work out how I can see all of the rows that contain information about the fruit that one person eats so if I were to look at Peter for example I want to see all of the rows for 'Banana' and 'Apple' i.e.
Banana Peter
Banana James
Banana Laurie
Apple Peter
Apple Paul
I'm more accustomed to SQL (the dataset is generated from a SQL server) and this would a fairly straightforward subquery however I'm being asked if I can present this in Excel and although I have used excel quite a bit it's been at a relatively shallow level (index-match, recorded but not edited macros etc.).
I suspect that a macro could be written to do the job but I don't really know what I'm doing with macros and I wonder if there isn't another way. The dataset isn't huge at maybe 10,000 rows if that makes a difference.
I'm using Windows 7 and Microsoft Office Professional Plus 2013.
I'd be very grateful for any help. I've spent the last 6 hours considering this without really getting anywhere.
I have a list of fruit in column A and in column B I have a list of the names the eat that fruit in a many:many relationship (there are also many other columns but I'll leave them out for the sake of simplicity) e.g.
Banana Peter
Banana James
Banana Laurie
Orange Laurie
Orange James
Apple Peter
Apple Paul
I'm trying to work out how I can see all of the rows that contain information about the fruit that one person eats so if I were to look at Peter for example I want to see all of the rows for 'Banana' and 'Apple' i.e.
Banana Peter
Banana James
Banana Laurie
Apple Peter
Apple Paul
I'm more accustomed to SQL (the dataset is generated from a SQL server) and this would a fairly straightforward subquery however I'm being asked if I can present this in Excel and although I have used excel quite a bit it's been at a relatively shallow level (index-match, recorded but not edited macros etc.).
I suspect that a macro could be written to do the job but I don't really know what I'm doing with macros and I wonder if there isn't another way. The dataset isn't huge at maybe 10,000 rows if that makes a difference.
I'm using Windows 7 and Microsoft Office Professional Plus 2013.
I'd be very grateful for any help. I've spent the last 6 hours considering this without really getting anywhere.