Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

SUMIF with LOOKUP

I have a static table and a filtered table in the attached document and I need do a SUMIF whereby (for example) all 'Aus Super' invoices currently visible on the right table (the filtered table) and SUM'ed up in the static table on the left...

This will make more sense when you can view the Excel document I am sure...

Thanks
Super-Liability.xlsx
0
recycleaus
Asked:
recycleaus
  • 3
  • 3
  • 3
1 Solution
 
dlmilleCommented:
You can put this formula in column E (or your column of choice - I put it in E in the attachment, though you may be wanting it in column C?) and copy down:

[E2]=SUMIF(Table1[Super],$A2,Table1[Amount])

Note [A9] = "Integra Super" - Should it not be "Integra" to match the table?

See attached.

Dave
Super-Liability.xlsx
0
 
recycleausAuthor Commented:
Thanks Dave but when I apply a filter on the right table (date range generally) it doesn't update the totals in the summary table on the left
0
 
dlmilleCommented:
Got it.  Will revert in a few ( I'm a meeting)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
barry houdiniCommented:
It's a little trickier to do if you only want to include visible rows (after filter). This formula will give you the same result as Dave's when nothing is filtered

=SUMPRODUCT((Table1[Super]=$A2)+0,SUBTOTAL(9,OFFSET(Table1[Amount],ROW(Table1[Amount])-MIN(ROW(Table1[Amount])),0,1)))

....but when you filter it only sums the visible rows

regards, barry
0
 
recycleausAuthor Commented:
Barry it is simply giving me an answer of TRUE... no figures
0
 
barry houdiniCommented:
Here's the example....

I filtered by the top few items - of course the way you have the data set up you can't filter so that the top rows are hidden without losing site of the summary table - I assume the real setup is different?

barry
subtotal2.xlsx
0
 
barry houdiniCommented:
....or in this version I added a helper column in N using this formula

=SUBTOTAL(2,M2)

then you can simplify the column E formula to this

=SUMIFS(Table1[Amount],Table1[Super],$A2,Table1[Helper],1)

see attached

regards, barry
subtotal.xlsx
0
 
recycleausAuthor Commented:
thanks Barry... your first one is working great
0
 
dlmilleCommented:
Sorry I didn't glean the filter-ability needed on the SUM.  Thanks barry for jumping right in as I was out in meetings until now.

Cheers,

Dave
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now