Lookup - match - Add & Subtract

Vcoppens

Board Regular
Joined
Apr 16, 2012
Messages
90
Hi,
I have a spreadsheet with 3 tabs:
1. TOTAL: Where the results need to show (= total sales per owner) and where formulas need to be entered
2. RENT: Sales and refund per property for one particular month
3. OWNER: Property owners and their corresponding property numbers

The first step should be:
Lookup the name in the column A of tab1, if it matches the one in column A in tab 3 then take the property # which is in column B

The second step should be:
Lookup those particular property #'s in tab 2 and add the rental income minus the refunds

Your help will be appreciated helping create a formula.
Total

ABCDEF
1NameJan-17Feb-17Mar-17Apr-17
2Jones Total
3Smith Total
4 TotalTotalTotalTotal

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
Rent

ABCDEFG
1Property Rent income
2 RefundJan-17RefundFeb-17RefundMar-17
31 200 200 300
4250300 150 70
53 100 200 150
64 5010100 200
75 150 300 100
86 200 70 300
9720100 15030100
108 300 200 50
119 70 70 150
121 15020150 200
132 200 200 100
143 100 100 300
154 300 300 70
1651570 100 150
176 200 50 200
187 300 150 300
198 100 100 100
209 50 50 50
21 852940302640302890

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"><col style="width: 45.6px;"><col style="width: 56px;"><col style="width: 48.8px;"><col style="width: 60px;"><col style="width: 46.4px;"><col style="width: 54.4px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B21=SUM(B3:B20)
C21=SUM(C3:C20)
D21=SUM(D3:D20)
E21=SUM(E3:E20)
F21=SUM(F3:F20)
G21=SUM(G3:G20)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Owner

AB
1NameProperty #
2smith1
3smith2
4smith3
5jones4
6jones5
7smith6
8jones7
9jones8
10smith9

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"><col style="width: 64px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Thank you for trying to fix this.

The spreadsheet has 3 tabs.
The first tab is where the formula needs to be entered and reflects the total per owner
The second tab has the sales per property. Since multiple sales can happen per property, a property might show up several times per month,
The third tab has the name of the owner and the properties that belong to that owner. The properties are defines in the form of a number.

When I copied the formula, I get the following message.
Hope this helps....
"We found a problem with the formula. Try clicking insert Function". Not trying to type a formula, when the first character is an equal etc." The usual notice of excel"
 
Last edited:
Upvote 0

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.
I think I have a partial solution.
In the Rent tab I could add a column to the left of the properties and add the following formula
=VLOOKUP(a3,owner!$a$2:$b$10,2,0)

That way I have on the rent tab the name of the owner and the corresponding property.

Then I can add in the total tab the total income for each owner and their corresponding properties.

Will be working on that one now.
 
Last edited:
Upvote 0
I think I have it.
In the first tab, the following formula should give the result
=SUMPRODUCT(--(F3:F20=A2),I3:I20-H3:H20)

Total

ABCD
1NameJanuaryFebruaryMarch
2Jones133513901040
3Smith152012201820
4 TotalTotalTotal

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B2=SUMPRODUCT(--($F$3:$F$20=$A2),I$3:I$20-H$3:H$20)
C2=SUMPRODUCT(--($F$3:$F$20=$A2),K$3:K$20-J$3:J$20)
D2=SUMPRODUCT(--($F$3:$F$20=$A2),M$3:M$20-L$3:L$20)
B3=SUMPRODUCT(--($F$3:$F$20=$A3),I$3:I$20-H$3:H$20)
C3=SUMPRODUCT(--($F$3:$F$20=$A3),K$3:K$20-J$3:J$20)
D3=SUMPRODUCT(--($F$3:$F$20=$A3),M$3:M$20-L$3:L$20)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,438
Members
449,083
Latest member
Ava19

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