Hi All,
I have a query that my level of Excel knowledge is preventing me from solving. Was hoping that someone could help :-)
I have an excel file with a great deal of data from sites all around the world. What I would like to do is take data from this file but only for a specific site and have it automatically appear in a new workbook every time that site name appears.
In the example attached the supplier column (C) is the column that contains the list of sites from which i want to take the data from, but only when the cell in column C contains 'not'. if this is true, then i would like to take the whole of that row and put it into a new line in a new workbook. . . if that makes sense.
Any help would be appreciated! I have been exploring with =SUMIF. . . would that be a way of doing it?
thanks in advanceExample.xlsx
Last edited by smilking; 01-13-2012 at 08:59 AM.
In O2 of sheet 1 add a helper column to count matches:
=IF(C2="not",COUNT(O$1:O1)+1,"")
copied down
in P2 get total count:
=MAX(O:O)
Then in Sheet2, A2:
=IF(ROWS($A$2:$A2)>Sheet1!$P$2,"",INDEX(Sheet1!A:A,MATCH(ROWS($A$2:$A2),Sheet1!$O:$O)))
copied down and across as far as you need.
Column A will need to formatted as Date.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Hi NBVC,
Thank you for that incredibly quick reply!
What you have outlined works like a treat. . . thank you ever so much.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks