Greetings all, this is my first post--please forgive my English (and my Excel-speak).
My actual situation is more complicated than this, but suppose I have a table with 11 columns and hundreds of rows. Column A contains names of diseases, but not necessarily unique values. Columns B through J contain symptoms (eye pain, eye dryness, headache, cervical spine pain, and many more). Therefore, every row will have a disease (again, not necessarily unique), and may have between 0 and 10 associated symptoms (1 per column).
Essentially, this table represents symptoms by disease. On a separate sheet, I would like to recast these data into a table representing diseases by symptom. What I am envisioning is a column for each symptom, below which some formula would populate a list.
Assuming that there is no title row on the original page (for simplicity), and that there are 100 rows of data, the formula for the "cervical spine pain" symptom column would:
1. Search through B1:J100 (by row, for example) for instances of "cervical spine pain".
2. Upon finding an instance, it would copy the value from column A (the disease) associated with the row in which the symptom was found, and paste it below the "cervical spine pain" column of sheet two.
3. It would then continue searching, and paste new instances below the first, thereby making a list that autopopulates itself as items are added, changed, or removed from the main table (sheet 1).
4. If possible, it would then remove duplicate values from the list.
Then I want to do this with all the other symptoms.
Any idea? I've tried the Lookup family of functions, but they require unique values in Column A, and the Index and Match combination boggles me and seems not to work for this case anyway. Also, I've stalled attempting to record macros.
This seems like a fairly easy/common task, but I haven't been able to find help on it elsewhere. Any help--and of course, as soon as earthly possible, would be very appreciated.
Thanks,
Hillargi
Bookmarks