Happy New Year forum members. I am new to the forum, so I apologize if I put my question under the wrong subforum. I hope someone can help me with my query.
I have a large dataset (over 10,000 isolates {rows}) that I extracted from an online database.
Several of the resulting columns have data that is comma delimited (see column B in the included sample data file) with lists of different sizes (the data is antibiotic susceptibility profiles if it makes it easier to understand).
I separated this data into the next columns using DATA --> Text to Columns. Because the data that was separated contained lists with different antibiotics in the profile for each sample, I want to organize it so the same antibiotics for each row are aligned under column headers with the same name. I manually went through the data to add column headers that corresponded to all the antibiotics utilized in the data (see row 1, columns C through BM. FYI- This includes the antibiotic names from the whole dataset, not just the sample data set you have).
I have manually rearranged the data in rows 2 and 3 for Isolate 1 & 2 to show how I would like the data to look with the susceptibility data for each antibiotic available for an isolate aligned under the Antibiotic name (I plan to remove the antibiotic name from the data cells using the replace function leaving just the letter after the = once the data is properly aligned; e.g. penicillin=R will just say R). Rows 4 through 22 have been separated, but have not been reorganized/aligned. Is there a way to automatically align the data for each isolate into the corresponding column?
I often take the brute force approach to data organization and manually move things, but this data set is so big I thought I should find out if there is a more efficient and less error-prone way to do this. Thank you in advance for any help you can provide me.
Sincerely,
Michele
Bookmarks