=SUMPRODUCT($sheet2.$C2:$C10000; 1=MONTH($Sheet2.$A2:$A10000);$Sheet2.$E2:$E10000="A")
That exact formula, and once i drag it to either the right, i would like the 1 on the second array to increase to 2, then 3, so forth. And if i were to
drag it down i would like it to change the A to B, then C.
I have experimented with some simple code, and it works, but when it comes to months, it doesnt.. Anyways, If I have a list of 10 items on the left hand side, and a list of 10 on the top. For example, an expense sheet.
1/24|2/24|3/24|4/24|5/24
dogs
cats
cows
ducks
lizards
How can i make the formula auto add "dogs" and "cats", if the formula is dragged into the corresponding rows. And how do i make the month=1 thing change with its corresponding column?
That was alot of explaining, i hope there is a solution to this. There is no way i can sit on openoffice for 10 hours trying to copy and paste, then change these variables lol. Thx!
| Edit: Changed subject, was Draging a complex formula while adding a fixed number Make your post understandable by others -- MrProgrammer, forum moderator |