Is there a way to carry balances forward in access

57oln

New Member
Joined
Mar 17, 2013
Messages
9
Hi all,

I again needs some help and am somewhat stuck.

I have a report which is grouped by month and then sorted by year. So we can compare work flow for the same month over years. Each month then has a total of unprocessed information. I have tried to demonstrate it in the table below.

MonthYearQueueJob1Job2Job 3
1
2012Post9046324
Processed376470
Unprocessed total5281624
2013Post5447026
Processed308240
Unprocessed total2364626
2
2012Post76013915
Processed2521370
Unprocessed total508215

<tbody>
</tbody>

The unprocessed total is a calculated field within the "Year" Footer of the report and the calculation is within the report itself.

I have been asked to have the unprocessed total carry forward. i.e. Job 3 in Month 1 2012 had 24 unprocessed records, so Job 3 in Month 2 2012 should be the 24 from Month 1 plus the 15 in Month 2 giving a total of 39.

This needs to work for Months 1 to 12 and then roll over to Month 1 in the next year.

I have tried to think about it and am leaning towards adding something to something like count the month before to the calculated field, but I have a headache setting in and this is beginning to be over my head......can anyone help??

Thanks in advance
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi,

I would use an array formula or SUMPRODUCT;

Sheet1

ABCDEFGHIJ
1MonthYearQueueJob 1Job 2Job 3Job 1Job 2Job 3
21Post904632410561839
3Processed376470
4Unprocessed Total20125281624
5
6Post5447026
7Processed308240
8Unprocessed Total20132364626
9
102Post90413915
11Processed3761370
12Unprocessed Total2012528215
13

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
H2=SUMPRODUCT(--($A$1:$A$12="Unprocessed Total"),--($B$1:$B$12=2012),--(D1:D12>0),D1:D12)
I2=SUMPRODUCT(--($A$1:$A$12="Unprocessed Total"),--($B$1:$B$12=2012),--(E1:E12>0),E1:E12)
J2=SUMPRODUCT(--($A$1:$A$12="Unprocessed Total"),--($B$1:$B$12=2012),--(F1:F12>0),F1:F12)
D4=D2-D3
E4=E2-E3
F4=F2-F3
D8=D6-D7
E8=E6-E7
F8=F6-F7
D12=D10-D11
E12=E10-E11
F12=F10-F11

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Hope this helps.

AP
 
Upvote 0
Hi,

I would use an array formula or SUMPRODUCT;

Sheet1

ABCDEFGHIJ
1MonthYearQueueJob 1Job 2Job 3Job 1Job 2Job 3
21Post904632410561839
3Processed376470
4Unprocessed Total20125281624
5
6Post5447026
7Processed308240
8Unprocessed Total20132364626
9
102Post90413915
11Processed3761370
12Unprocessed Total2012528215
13

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
H2=SUMPRODUCT(--($A$1:$A$12="Unprocessed Total"),--($B$1:$B$12=2012),--(D1:D12>0),D1:D12)
I2=SUMPRODUCT(--($A$1:$A$12="Unprocessed Total"),--($B$1:$B$12=2012),--(E1:E12>0),E1:E12)
J2=SUMPRODUCT(--($A$1:$A$12="Unprocessed Total"),--($B$1:$B$12=2012),--(F1:F12>0),F1:F12)
D4=D2-D3
E4=E2-E3
F4=F2-F3
D8=D6-D7
E8=E6-E7
F8=F6-F7
D12=D10-D11
E12=E10-E11
F12=F10-F11

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Hope this helps.

AP

Hi ArthriticPanda,

Is there a way to have the totals in row 12 instead of being out in columns H, I, J?

Thanks.
 
Upvote 0
Hi ArthriticPanda,

Is there a way to have the totals in row 12 instead of being out in columns H, I, J?

Thanks.

Hi 57oln,

Yes you can, in the cell formulas listed above, you can see they are in cells H2, I2 & J2.

Just type the formula into the cells at the bottom of your rows, e.g

A12 =SUMPRODUCT, etc
B12 =SUMPRODUCT, etc

AP
 
Upvote 0
Is this an Access or an Excel question?
 
Upvote 0
My apologies 57oln, I thought I was following an excel thread. I've done that a couple of times today. (The clue is in the title!)

AP
 
Upvote 0
Sometimes things aren't that complicated as they seem to be. What you need is a running total, which is a standard feature in de Access reporting tool. The only thing you need to do is set the running total option to 'Yes' in the sum field.
 
Upvote 0
access, hence the title and why it is posted in the access section.

Also why I called it a report and not a spreadsheet.

Why is that Joe4?
That is what I thought, but then I saw the "Excel-type" reply, and you replied to that with an Excel-type reply (reply #3).
Just wanted to make sure it was in the correct forum, and if not, I could have moved it for you.
 
Upvote 0
My apologies 57oln, I thought I was following an excel thread. I've done that a couple of times today. (The clue is in the title!)

AP

No problems, I can see how it would easily be done.

Sometimes things aren't that complicated as they seem to be. What you need is a running total, which is a standard feature in de Access reporting tool. The only thing you need to do is set the running total option to 'Yes' in the sum field.

I have tried this and because of the months being grouped together it doesn't work (perhaps I am doing something wrong).

When I try it I get the report doing this

Month 1Queue 1Queue 2Queue 3
2012
Mail505050
Processed201050
Balance unprocessed30400
2013
Mail202020
Processed20100
Balance unprocessed305020
Month 2
2012
Mail203050
Processed0305
Balance unprocessed (when running total by group)20 045
Balance unprocessed (when running total over all)505065

<tbody>
</tbody>

But what I am looking for is month 1 adding to month 2 and so on and then coming back to month 1 in the new year.
Month 1Queue 1Queue 2Queue 3
2012
Mail505050
Processed201050
Balance unprocessed30400
2013
Mail202020
Processed20100
Balance unprocessed01020
Month 22012
Mail203050
Processed0305
Balance unprocessed504095

<tbody>
</tbody>

That is what I thought, but then I saw the "Excel-type" reply, and you replied to that with an Excel-type reply (reply #3).
Just wanted to make sure it was in the correct forum, and if not, I could have moved it for you.

No worries, thanks
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top