Sum an IndexMatch formula rather than return 1 result

southike

New Member
Joined
Feb 26, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I have a range of data that I am using IndexMatch to get a result. It has two criteria: date and account number.

For most of them, I only need one result pulled. No issue. But I have one particular account number that is in the range more than one time, and I need the formula to return the total (sum) of them. This particular formula is in cell D9. I need it to find account number 90577371 and in the "Jan -21" column, return the sum. (Jan-21 column not shown since it's so far out to the right).

Thank you!

=INDEX($C$25:$BO$531,MATCH($C9,$C$25:$C$531,0),MATCH($C$2,$C$25:$BO$25,0))

Accrual Tracking 202101
Month-EndJan-21
DescriptionAccount No.Accrual SheetStatementStatement
Depreciation - Bank Building90577390$ 6,233.52$ 6,233.52
Depreciation - Furn, Fix, and Eqiup90577510$ 4,511.80$ 4,511.80
Amortization - Software90577520$ 4,845.21$ 4,845.21
Real Estate Tax90577370$ 2,355.30$ 2,355.30
Other Valuation Taxes90577371$ 5,964.29$ 5,964.29
FF&E Personal Property Tax90577570$ 414.04$ 414.04$ -
Accrued Property Tax90222976$ 28,993.01$ 211,327.43$(182,334.42)Previously-accrued
Depreciation, Amortization, Prop Tax, and Exam/Audit Fees
DescriptionAccount No.PeriodDate PaidOrig AmountJan-18Feb-18Mar-18Apr-18May-18Jun-18Jul-18
A/D Main Office Build901117022021N/A$ 31,383.09
A/D Green River Plaza Land901117042021N/A$ 4,500.48
A/D Central Express Branch901117062021N/A$ 3,378.81
A/D First St. Parking Lot901117102021N/A$ 433.33
A/D 325 E Main St. Building901117152021N/A$ 4,087.36
A/D 325 E Main St. Blacktop901117172021N/A$ 1,666.67
A/D Green River Plaza Building901117192021N/A$ 23,366.74
A/D 800 Cville Bypass Blacktop901117482021N/A$ 1,961.00
A/D James Street Building901117282021N/A$ 4,026.08
Total Accrued90577390-------
Depreciation - Furniture, Fixtures, and Equipment
DescriptionAccount No.PeriodDate PaidOrig AmountJan-18Feb-18Mar-18Apr-18May-18Jun-18Jul-18
A/D Furn, Fix, & Equip901117222021N/A$ 54,141.27
Total Accrued90577510-------
Amortization - Software
DescriptionAccount No.PeriodDate PaidOrig AmountJan-18Feb-18Mar-18Apr-18May-18Jun-18Jul-18
Amortization - Software901117262021N/A$ 44,555.47
Total Accrued90577520-------
Accrued Property Tax
DescriptionAccount No.PeriodDate PaidOrig AmountJan-18Feb-18Mar-18Apr-18May-18Jun-18Jul-18
REAL ESTATE TAX905773702021N/A$ 28,263.38
CITY/CO FRANCHISE905773712021N/A$ 71,571.48
STATE FRANCHISE 2019905773712021N/A$ 243,112.56
FF&E PER PROP TAX905775702021N/A$ 4,968.15
Total Accrued90222976-------
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Welcome to Mr. Excel,

It's unclear (at least to me) what rows are what rows and where you are trying to analyze the data to produce the result.
 
Upvote 0
Thank you, kweaver. I will try and clarify:

My formula is in cell D9.

I want it to look in the following range: C25:BO531

I want it to look for account number 90577371 in this rage: C25:C531

Then, look in C25:CBO25 and find "Jan-21" (the date I've typed into cell C2)

And return the sum of whatever numbers it finds.
 
Upvote 0
Another way of saying (in my brain at least) is:

Look down until you find 90577371. Looks like I see it two times in a row. Now go accross until you're in the January 2021 column. Add the numbers up for that account number.
 
Upvote 0
Rather than entering a "-" in the cells where no data is available, use formatting to handle that because otherwise it's a character.
Then, suppose you use this in D5 and filled down?

Code:
=SUMPRODUCT((B5=$B$26:$B$57)*INDEX($F$26:$L$57,,MATCH($B$2,$F$25:$L$25,0)))

Of course, change the the column reference from "L" to however far you need. I just abbreviated the amount of sample data.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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