PDA

View Full Version : group data



ashgull80
08-06-2012, 12:44 PM
hi
i have a sheet with income data and the date the income was recieved.
on another sheet i would like a cell to group the data for each month together.
so a1 will be jan, a2 feb, a3 march ect ect.
but the cell will need to find the all the income for january then take its data from the corrosponding cell.
eg: sheet 1
A B
date Ammount
01 jan 50
03 jan 75
05 feb 20
10 feb 60

sheet 2
A B
jan 125
feb 80

thanks for your help
ash

CatDaddy
08-06-2012, 12:48 PM
=SUMPRODUCT((A:A = "jan")*(B:B))

ashgull80
08-06-2012, 12:55 PM
this doesnt seem to have worked i dont think i explained it very well.
what does this formula you provided do?
thanks

mancubus
08-06-2012, 10:52 PM
hi.

create a pivot table.
(date as "row label" and amount as "value")

right click on dates in pivot, click "group", select "month" from grouping box.

ashgull80
08-30-2012, 01:01 PM
the problem is i have sheet where all the income is input, then on another sheet is the total input for each month in a seperate cell.

mancubus
08-30-2012, 03:59 PM
attached is an example of what i said in post #4

ashgull80
09-03-2012, 09:57 AM
works brilliant i completly misunderstood before.
thanks so much for your help.
is there a way of sorting it into months but keep the years seperate, so groups april 2012 seperate to april 2013 or is it best to make a new pivot table?

mancubus
09-03-2012, 11:02 AM
hi.

create a pivot table.
(date as "row label" and amount as "value")

right click on dates in pivot, click "group", select "month" from grouping box.


create a pivot table.
date as "row label" and date as "column label", and amount as "value"

select both "year" and "month" from grouping box for row and column values separately.

(just click one after another.)

mancubus
09-03-2012, 11:18 PM
pivot and formula solutions. sample file attached.