Need help with formula or function for numbers that change monthly

johnanacater

New Member
Joined
Dec 26, 2002
Messages
5
I am having the hardest time trying to figure out how to show my monthly numbers from a budget detail worksheet onto the budget summary worksheet. Here is a sample of what my summary worksheet looks like:
CurMnth YTD Budget
Air Surv 10 245 816
Enf Cas 24 36 1550
Air Perm 26 170 1500

Here is a sample of my monthly detail:

AirSurv EnfCas AirPerm
JUL 235 12 144
AUG 10 24 26
SEP
OCT
NOV
DEC
TOTALS 245 36 170

How do I get each months to show under Current Month and I have a file of the sample data?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Using month numbers instead of JUL, AUG, SEP makes it possible to get both CurrMnth and YTD.

For these formulas the monthly detail is :

Range A2:A4 = 7, 8, 9
Range B1:D1 = AirServ, EnfCas, AirPerm
Range B2:D4 are the figures
Range A8 is your current month number


CurrMnth
=SUMPRODUCT(($A$2:$A$4=$A$8)*($B$1:$D$1=$A10)*($B$2:$D$4))

YTD
=SUMPRODUCT(($A$2:$A$4<=$A$8)*($B$1:$D$1=$A10)*($B$2:$D$4))

Success,

Erik
 
Upvote 0
I tried it and it is not working for me. Maybe I am not entering the formula in the right cell. I put the formula in cell B2 and then I was going to copy it down but it is not working. In my actual spreadsheet I have 32 categories. Also, the actual monthly totals are on another worksheet in the same book.
 
Upvote 0
You are right, the formula is not entered in the right cell.

Cell B2 should contain the value 235, as in your monthly detail. C2 = 12, D2 = 144 etc.
Please enter the formulas in cells A10 and A11.

As the data are on another worksheet you'd best use named ranges.
 
Upvote 0
If the headings were consistent this would be easier (eg "Air Surv" on one sheet and "AirSurv" on the other). Also, in your sample the headings across the top of the detail sheet are (apart from the space issue already highlighted) laid out identically to the headings down the left of the summary sheet. If this is always the case, the formula below could be simplified.

Anyway, this may give you a starting idea.

Formula in B2 of Summary is copied down.

Excel Workbook
ABCD
1AirSurvEnfCasAirPerm
2JUL23512144
3AUG102426
4SEP
5OCT
6NOV
7DEC
8TOTALS24536170
Detail



Excel Workbook
ABCD
124/08/2010CurMnthYTDBudget
2Air Surv10
3Enf Cas24
4Air Perm26
5
Summary
 
Upvote 0
Thank you Peter SSs for your assistance with my delimma, but I have not been able to get it to work. I have my spreadsheet setup just like yours and it is not working. Is there something that i am missing?
 
Upvote 0
If it is not working then there must be something different between your setup and mine. A couple of things to investigate/report.

1. When you say it is not working what do you mean? Did you get an error? Nothing? Wrong answer?

2. In your 'Detail' sheet can you confirm that the month names in column A are text and not dates formatted to just show the month? Assuming the same layout as mine, in a blank cell put =ISNUMBER(A2)
What does that return?

3. If you have not done so already, start a new workbook and copy the data from my post into the respective sheets (you may need to delete the first column where the row numbers also get copied in). In 'Summary' delete the date in A1 and the three numbers in B2:B4 then copy each formula from my post and paste into the relevant cell. Copy B2 down to B4. Does it work in this new workbook?

You might also investigate posting a small screen shot of your sheets so I can copy yours and be more sure of the exact layout. I've used Excel jeanie but there are a number of ways including ...

Excel jeanie
or
RichardSchollar’s beta HTML Maker
or
Borders-Copy-Paste
 
Upvote 0
Here is a copy of my worksheets

Excel Workbook
AB
625/08/2010FY'11
7Current
8ACTIVITY INDICATORSMonth
9Air Investigations#N/A
10Air Surveillance0
11Enforcement Cases0
12Air Permitting Review23
13Air Monitoring0%
14Handheld Sampling0
15Criteria Pollutants0
16Lake/Bayou Samples291
17Field Measurements2,000
18Complaints Investigations76
19Special Waste Investigations4
FY11 Total




Excel Workbook
ABCDE
3Air Invest.Air Surv.Enf. CasesPermit Reviews
4Jul100023
5Aug15
6Sep0
7Oct0
8Nov0
9Dec0
10Jan0
11Feb0
12Mar0
13Apr0
14May0
15Jun0
16TOTALS250023
Detail
 
Upvote 0
OK, your problem (using my suggested formula) is your headings. As I mentioned previously your original data headings differed by a space. In these sample the headings are quite different ('Enforcement Cases' v 'Enf. Cases' etc).

However, it seems your headings are in the same order in each sheet, so try this (I have added a bit more data on the Detail sheet). You may need to adjust the ranges slightly to suit your data. It does depend on the corresponding headings being down column A of the Total sheet and across row 3 of the Detail sheet.

Excel Workbook
ABCDE
3Air Invest.Air Surv.Enf. CasesPermit Reviews
4Jul100023
5Aug15826
6Sep0
Detail



Excel Workbook
AB
625/08/2010FY'11
7Current
8ACTIVITY INDICATORSMonth
9Air Investigations15
10Air Surveillance0
11Enforcement Cases8
12Air Permitting Review26
13Air Monitoring0
FY11 Total
 
Upvote 0

Forum statistics

Threads
1,215,344
Messages
6,124,407
Members
449,157
Latest member
mytux

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