Friends, this is the essence of some data I have to work with. Col A contains the base location names. For various reasons there are also alternative names in cols C, D, E and F. Col B has the years - it is an 18 month rolling sheet so it currently is 2014 and 2015 (col B). Cols G through L have a list of drug classifications. As they come out of the original program they are drug b,drug d,drug a,drug c etc. Any order separated by commas. I use the text to columns to get then into their own cells. I consolidated them all in col Q.
Now the problem, I have to count them by the various locations (dropdown in col S) and different time frames (dropdown in col O). The final output for these variations is a graph (not included). I have struggled with various ways to get all 6 columns of drug data to count but to date I've only counted the first (col G). The only way I have figured out to do this is to use up to 60 columns beginning in col U and ending in col CB with concatenations to try to count the various permutations that the two dropdowns and the different drug classifications. I've tried two different count processes, one in col P and one in col T. Col P doesn't work if I use one of the alternate names or any of the date values (2014 or 2015). For col T the only way I think I can get it to work is to have up to 60 different countif formulas.
To complicate things I can't access the forum from work so I'll only be able to visit it using my iPad so any reuploading of the sheet I cannot see what solutions are proposed. I don't think VBA would be a solution since the end result is posted to a sharepoint site and has multiple users selecting what they want to see and I'm not versed in VBA. It would also be nice if I didn't have to use an array because the data varies every month.
If you write out the proposed solution and I can read it on my iPad I can test it at work.
I always give points if that is any help.
Bookmarks