Thanks for this. I have so much data manipulation at this stage so it's really confusing script wise, adding this will just over complicate it for me at this stage. I do this the solution is really great. I have used similar ways to get my data easier to work with. I think it works just as well probably as the other solution. Just for my specific needs this just gets too much to get the data correct for all possible graphs I have to produce.