SUMIF on two tables

Deverti

Board Regular
Joined
Sep 5, 2020
Messages
63
Office Version
  1. 365
Platform
  1. Windows
im confused as to how i should create a formula to get me a sum of a dynamic range based on a value present in both my tables

i ve been trying to reference the relevant table columns as range and criteria but im screwing something up.
specifically for the example i need the sums of "Rent Soll" or "Rent Ist" from the upper table to be displayed in the lower table if "Name 'x'" in column A from both tables match

really appreciate any help

Generating an output with XL2BB only ever crashes my excel for some reason ~
Link to temporary example upload: /tmp/files - Temporary File Hosting
 

Attachments

  • example.png
    example.png
    31.4 KB · Views: 175

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
example.xlsx
ABCD
1EigentümerBezeichnungRent SollRent Ist
2Name AA_Prop 113517921351792
3Name AA_Prop 1
4Name AA_Prop 2784536782540
5Name BB_Prop 1531904279283
6Name BB_Prop 1
7Name BB_Prop 2625482596412
8Name BB_Prop 315623471562347
9Name CC_Prop 118596251859625
10Name CC_Prop 210840001084000
11Name CC_Prop 3528527526951
12
13
14
15
16
17
18Inhaber-Total Rent SollTotal Rent Ist
19Name C34721523470576
20Name B27197332438042
21Name A21363282134332
22#N/A00
23#N/A00
24#N/A00
25#N/A00
26#N/A00
27#N/A00
28#N/A00
29#N/A00
30Ergebnis11
test2
Cell Formulas
RangeFormula
A19:A29A19=LOOKUP(2,1/(COUNTIF($A$18:A18,Tab_Hypotheken[Eigentümer])=0),Tab_Hypotheken[Eigentümer])
C19:C29C19=SUMIFS(Tab_Hypotheken[Rent Soll],Tab_Hypotheken[Eigentümer],[@Inhaber])
D19:D29D19=SUMIFS(Tab_Hypotheken[Rent Ist],Tab_Hypotheken[Eigentümer],[@Inhaber])
D30D30=SUBTOTAL(103,[Total Rent Ist])
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
mh i wish
=SUMIFS(Tab_Hypotheken[Rent Soll],Tab_Hypotheken[Eigentümer],[@Inhaber])
gives me "0" as results

edit:
was using SUMIF instead of SUMIFS, duh

perfect, thank you :v
 
Upvote 0
Is that in your test workbook?
Also do you have a line feed between Rent & Soll
 
Upvote 0
that was meant to tackle my pre edit response i suppose

thanks for the support tho^^
 
Upvote 0
It was indeed.
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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