I
irato2
Hi, i am struggling to figure out how to set up a workbook which will d
this; I want a worksheet which will hold unsorted rows of data in
database-like format. I also want another worksheet which will hold th
sorted data, but in a format slightly more apealling than just a sorte
database. I want the sorted data to be seperated( by empty rows) int
related rows, e.g. all rows with the same data in column 1 and 2 to b
grouped then a gap and so on.
How I wanted to do this was start it off manually using autofilter an
cut-and-paste to set out the format in the 'sorted' worksheet then hav
a macro/event procedure which, whenever someone adds a new row to th
'unsorted' sheet, will find the appropriate place in the 'sorted' shee
and insert a copy of the row in there.
this would hopefully allow me to set up a sum function in one colum
which will sum all the data for each group of sorted rows.
How I do this I have no idea, im quite new to Excel and vba, but i
would be a very useful feature. Ive attached a spreadsheet with a smal
sample of the data and how I wanted the data organised.
Ive tried thinking about it using match or lookup but The data i
needed to be sorted on the first 3 columns and so I couldnt figure ou
how to appy them, maybe nest them? i dont know
Anyway if anyone has any ideas or has done this before please give me
reply.
thanks, Stuar
Attachment filename: sortsample.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=52036
this; I want a worksheet which will hold unsorted rows of data in
database-like format. I also want another worksheet which will hold th
sorted data, but in a format slightly more apealling than just a sorte
database. I want the sorted data to be seperated( by empty rows) int
related rows, e.g. all rows with the same data in column 1 and 2 to b
grouped then a gap and so on.
How I wanted to do this was start it off manually using autofilter an
cut-and-paste to set out the format in the 'sorted' worksheet then hav
a macro/event procedure which, whenever someone adds a new row to th
'unsorted' sheet, will find the appropriate place in the 'sorted' shee
and insert a copy of the row in there.
this would hopefully allow me to set up a sum function in one colum
which will sum all the data for each group of sorted rows.
How I do this I have no idea, im quite new to Excel and vba, but i
would be a very useful feature. Ive attached a spreadsheet with a smal
sample of the data and how I wanted the data organised.
Ive tried thinking about it using match or lookup but The data i
needed to be sorted on the first 3 columns and so I couldnt figure ou
how to appy them, maybe nest them? i dont know
Anyway if anyone has any ideas or has done this before please give me
reply.
thanks, Stuar
Attachment filename: sortsample.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=52036