Sum data based on Row and Column variables (Excel 2007)

RBenny

New Member
Joined
Jan 9, 2009
Messages
16
Hello all,
Glad to be back on posting.

I'm working on a workbook that will combine a cash flow report by category and also by date. The categories can change (which I think is the easiest part) but so also can the frequency of data. For instance, you choose how you want to see the data, monthly, quarterly, annually and this will change the Row that the data should be summarized based off of.

Examples:
1) Annual: Sheet 1: Row = Rental Revenue and Column = 2001. I want to pull from sheet 2 all of the Rows that are mapped to Rental Revenue and all of the Columns that are mapped to 2001.
2) Quarterly: same idea but by quarter.
3) Monthly: No issue, just a SUMIF.

In Sheet 2 I have added a mapping at the top of each column for the Quarter, Year or Month that should be included in the Sheet 1 heading Row.

I tried using a sumproduct on both row and column using the whole data set underlying, but this did not work. "=SUMPRODUCT(1*('Sheet 2'!$A$9:$A$140='Sheet 1'!$C28)*('Sheet 2'!$E$9:$GA$9='Sheet 1'!E$27)*('Sheet 2'!$E$10:$GA$140))", it gives me a #N/A result.

I have tried to attach a table of what I am trying to do.
Sheet 1
Choose Frequency1
Annual120012002200320042005200620072008
Quarterly21200122001320014200112002220023200242002
Monthly33/1/20014/1/20015/1/20016/1/20017/1/20018/1/20019/1/200110/1/2001
Cash Flow Annual2/1/200120012002200320042005200620072008
Rental Revenue
Other Revenue
Recoveries
Income
Utilities
Repairs & Maintainence
Insurance
Property Taxes
Advertising & Upkeep
General & Administrative
Operating Expenses

<tbody>
</tbody>

<tbody>
</tbody>

Sheet2
OwnedOwnedOwnedOwnedOwnedOwnedOwnedOwnedOwned
Quarter120111201112011220112201122011320113201132011
Year201120112011201120112011201120112011
MonthJan-11Feb-11Mar-11Apr-11May-11Jun-11Jul-11Aug-11Sep-11
Rental Revenue4100-0105Apt-Market Rent Income - - - - - - - -
Rental Revenue4100-0110Apt-Gain/Loss-Lease Income - - - - - - - -
Rental Revenue4100-0120Apt-MonthlyConcession Income - - - - - - - -
Rental Revenue4100-0130Apt-Move In Discounts Income - - - - - - - -
Rental Revenue4100-0140Apt-Employee Allow Income - - - - - - - -
Rental Revenue4100-0150Apt-Model Unit Income - - - - - - - -
Rental Revenue4100-0210Apt-Vacancy Loss - - - - - - - -
Rental Revenue4100-APTBADDEBTApt-Bad Debt - - - - - - - -
Rental Revenue4100-BASERENTBase Rent - - - - - - - -
Rental Revenue4100-CREDLOSSCredit Loss - - - - - - - -
Rental Revenue4100-FREERENTFree Rent Income - - - - - - - -
Rental Revenue4100-PCTRENTPercentage Rent Income - - - - - - - -
Rental Revenue4100-RENTRELRent Relief - - - - - - - -
Rental Revenue4100-VACALLOWVacancy Allowance - - - - - - - -
Rental Revenue4111-ROOMREVHtl-Room Revenue - - - - - - - -
Rental Revenue4112-BANQHtl-Banquet Revenue - - - - - - - -
Rental Revenue4112-BEVHtl-Beverage Revenue - - - - - - - -
Rental Revenue4112-FOODHtl-Food Revenue - - - - - - - -
Rental Revenue4114-OTHOPPHtl-Other Op Dept Revenue - - - - - - - -
Rental Revenue4114-PARKHtl-Parking Revenue - - - - - - - -
Rental Revenue4114-PHONEHtl-Telephone Revenue - - - - - - - -
Rental Revenue4118-OTHREVHtl-Rental & Other Income - - - - - - - -
Recoveries4200-CAMREVCAM Revenue - - - - - - - -
Recoveries4201-OTHRECOther Recoveries - - - - - - - -
Other Revenue4301-0010Advertising Revenue - - - - - - - -
Rental Revenue4301-0020Apt-Application Revenue - - - - - - - -
Rental Revenue4301-0030Apt-Cable TV Revenue - - - - - - - -
Rental Revenue4301-0050Apt-Deposit Forfeited Revenue - - - - - - - -
Rental Revenue4301-0060HVAC Revenue - - - - - - - -
Rental Revenue4301-0090Apt-Lease Termination Revenue - - - - - - - -
Rental Revenue4301-0130Apt-Month to Month Revenue - - - - - - - -
Other Revenue4301-0160Parking Revenue - - - - - - - -
Rental Revenue4301-0170Apt-Pet Revenue - - - - - - - -
Other Revenue4301-0180Roof Lease Satelite Revenue - - - - - - - -

<tbody>
</tbody>

<tbody>
</tbody>


Hopefully you all can help me out. Let me know if it's not clear.

Many thanks,
Ryan
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Am I right is saying that depending on whether you choose Monthly, Quarterly or Annually you would like data to be returned?
 
Upvote 0
Yes, What I've tried to do on Sheet2 is to add a few rows that would help a sumif work, so if it's quarterly, then i want all rows that are 12001,22001,32001,42001, etc. and that data to be condensed by the tags in column A.
 
Upvote 0
Here's how I would ideally like it to work:

1) The user chooses on Sheet 1, in cell B1, their frequency. 1=Annual, 2=Quarterly and 3=Monthly and the column headings in the cash flow statement change to meet these needs.

What I've done is that on Sheet 1, in rowsC2:KS4 is built the headers for each frequency, based on the start date in cell B5. Then in row C5:KS5 I make the headings appear until year 2025 for any frequency choice. So this part is complete.

2) Then I need the data, always monthly, on Sheet 2 to sum into the appropriate call based on two factors: Factor a) the tagging on column A in Sheet1 should sumif it matches the tagging on column A on sheet 2 and Factor b) the frequency as I've defined on Sheet1, Row C5:KS5.

a) What I've done here is to tag the rows in Sheet 2, Column A to match the rows in Sheet 1 Column A, to me this should work in a sumif. b) Then what I've done (and I'm not sure if this would be necessary) is to tag on Sheet 2 rows D7:GA9 the same way that the heading row in Sheet 1, row C5:KS5. This is where I was hoping that the tagging could rollup into the frequency. For example, on Sheet 2, you'll seee all three months Jan, Feb, Mar in Q1, but on Sheet 1 I want those months columns to combine into the single column for Q1.

Is this more clear?
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,653
Members
449,111
Latest member
ghennedy

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