i'm doing accounts for my company and I have completed the project through using excel. I've been using sum formula as well as others to get the value to match the company in the right month. However I have just realised that I will be continuously adding more data to the spreadsheet and therefore I will have to constantly change the cell ranges every time I get more data. So realistic I would like to create a loop in excel that will keep changing itself when more values are added my understanding is that vba is the best way to do this. However I'm a complete novice at vba and need some help. Therefore I'm going to simplify the data below and see if anyone can help and then I will try and adapted it myself.
Data
Sheet1
Date/cell a1 Description cell b1 Amount cell c1
25/4/2012 company a 10
17/4/2012 company b 25
26/5/2012 company a 31
13/5/2012 company c 17
I want to manipulate this data into this
Sheet2
a1 b1 c1
April May
company a 10 31
company b 25 0
company c 0 17
Now what I want to do is create a code that looks at raw data on sheet1 then takes all the values for company a the month due to the date of the transactions and place in the correct cell in sheet2. I would like to stop all duplicates if possible. but most importantly I would like to create a loop so that when more data is add no hardcoding is needed. I appreciated I have asked a lot here and that I desperately need to learn VBA myself. But i'm in a slight panic and therefore your help with this would be really really appreciated. I'm complete novice with VBA and really need to learn quick thanks.
Bookmarks