Hi,
I've not dealt much with the match technique and although have tried it myself, I don't seem to have it right.. hope people can help out.
I've got 2 spreadsheet, a data sheet let's say and the main sheet.
within the data.xls i have => Let's say 123 below starts at row 2
col a (head id)
123
123
123
456
456
789
789
col b (sum t1)
100
200
200
300
300
600
600
col c (Subtotal) -> which is a subtotal of col b according to ID of col a
0
0
500 (made up of 100, 200 and 200 sumed according to ID 123)
0
600 (made up of 300 and 300 sumed according to ID 456)
0
1200 (made up of 600 and 600 sumed according to ID 789)
the way the formulae is in col C, it will only show the subtotal of that ID on the last row of the occuring ID, so there are three occurence of 123 ID, but the subtotal of 500 will occur on the last row of 123, in this case, if row 123 starts at row 2, than 500 above should occur at C4.
anyway,
I have the main.xls as follows:
col b (Group ID) (same as head id in data.xls sheet)
col c (Total) (this is the same as Subtotal col c of data.xls)
basically, i require a match that looks at col b (group id) of main.xls and looks for match in data.xls at column a of head id, if it finds a match, looks at column c subtotal of data.xls and looks for the subtotal (occuring on the last row of the series of the same ID which gives 500),
This 500 should now be pasted into col c (total) of the main.xls
could someone please help with this one.. i'm stumped..
I've not dealt much with the match technique and although have tried it myself, I don't seem to have it right.. hope people can help out.
I've got 2 spreadsheet, a data sheet let's say and the main sheet.
within the data.xls i have => Let's say 123 below starts at row 2
col a (head id)
123
123
123
456
456
789
789
col b (sum t1)
100
200
200
300
300
600
600
col c (Subtotal) -> which is a subtotal of col b according to ID of col a
0
0
500 (made up of 100, 200 and 200 sumed according to ID 123)
0
600 (made up of 300 and 300 sumed according to ID 456)
0
1200 (made up of 600 and 600 sumed according to ID 789)
the way the formulae is in col C, it will only show the subtotal of that ID on the last row of the occuring ID, so there are three occurence of 123 ID, but the subtotal of 500 will occur on the last row of 123, in this case, if row 123 starts at row 2, than 500 above should occur at C4.
anyway,
I have the main.xls as follows:
col b (Group ID) (same as head id in data.xls sheet)
col c (Total) (this is the same as Subtotal col c of data.xls)
basically, i require a match that looks at col b (group id) of main.xls and looks for match in data.xls at column a of head id, if it finds a match, looks at column c subtotal of data.xls and looks for the subtotal (occuring on the last row of the series of the same ID which gives 500),
This 500 should now be pasted into col c (total) of the main.xls
could someone please help with this one.. i'm stumped..