CHALLENGE: regarding an Index/Match Formula

yungintern

New Member
Joined
Jul 20, 2017
Messages
11
Hi all,

I'm working on a spreadsheet that requires me to look up payment schedules based on a property's geocode between two sheets. The tricky part, however, is that I must match three different types of payment (tax, operating expenses, and rent) for each geo code.

To make things more complicated, the field that I am using to match these three subtypes must correspond to a different code in the other sheet. For example. "Rent" in Sheet2 must match the code 1.1 in Sheet1.

Here is what I have so far, simplified through a dummy spreadsheet but the idea remains the same. In my example Rent=1.1 Operating Expense= 1.2, and Tax=1.3.

{=INDEX(Sheet1!B:L,MATCH(0,(Sheet2!,J:J=C2)*(Sheet2!,B:B=E2),0,),9)}

I think the problem may lie in the red text but honestly idk.

Basically I want the formula to work like this: Find the property based on geocode, determine the type of payment by converting the text from sheet2 to the code on sheet1, and return the correct payment amount.

Thanks for the help.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
[TABLE="width: 993"]
<colgroup><col span="10"><col></colgroup><tbody>[TR]
[TD="colspan: 2"]Sheet1

Payment Code[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]
[/TD]
[TD="colspan: 2"]Geo Code[/TD]
[TD]Payment Amount[/TD]
[/TR]
[TR]
[TD="align: right"]1.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]AAAAAA[/TD]
[TD][/TD]
[TD="align: right"]$100.00[/TD]
[/TR]
[TR]
[TD="align: right"]1.2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]AAAAAA[/TD]
[TD][/TD]
[TD="align: right"]$200.00[/TD]
[/TR]
[TR]
[TD="align: right"]1.3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]AAAAAA[/TD]
[TD][/TD]
[TD="align: right"]$300.00[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]Sheet2

[TABLE="width: 572"]
<colgroup><col><col span="5"></colgroup><tbody>[TR]
[TD]Payment Type[/TD]
[TD] [/TD]
[TD]Geocode[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]Payment[/TD]
[/TR]
[TR]
[TD]Rent[/TD]
[TD][/TD]
[TD]AAAAAA[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Tax[/TD]
[TD][/TD]
[TD]BBBBBB[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Operating Expenses[/TD]
[TD][/TD]
[TD]CCCCCCC[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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