Lookup to subtract and show difference - SUMIFS? SUMPRODUCT?

Churchy LaFemme

Board Regular
Joined
Sep 22, 2010
Messages
135
I want to show the change between two values over time on a summary tab. My data set has the first value and the second (typically larger) value. The data set will change so I need the summary tab to update.

The table below shows a sample of data, and then the column Season 2 Increase shows the expected result.

[TABLE="width: 405"]
<TBODY>[TR]
[TD][/TD]
[TD]Season 1 Cheeseburgers</SPAN>
[/TD]
[TD]Season 2 Cheeseburgers</SPAN>
[/TD]
[TD][/TD]
[TD]Season 2 Increase</SPAN>
[/TD]
[/TR]
[TR]
[TD]Teen Wolf</SPAN>
[/TD]
[TD="align: right"]57</SPAN>
[/TD]
[TD="align: right"]62</SPAN>
[/TD]
[TD][/TD]
[TD="align: right"]5</SPAN>
[/TD]
[/TR]
[TR]
[TD]Derek</SPAN>
[/TD]
[TD="align: right"]22</SPAN>
[/TD]
[TD="align: right"]56</SPAN>
[/TD]
[TD][/TD]
[TD="align: right"]34</SPAN>
[/TD]
[/TR]
[TR]
[TD]Stiles</SPAN>
[/TD]
[TD="align: right"]38</SPAN>
[/TD]
[TD="align: right"]102</SPAN>
[/TD]
[TD][/TD]
[TD="align: right"]64</SPAN>
[/TD]
[/TR]
[TR]
[TD]Jackson</SPAN>
[/TD]
[TD="align: right"]44</SPAN>
[/TD]
[TD="align: right"]9</SPAN>
[/TD]
[TD][/TD]
[TD="align: right"]-35</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]

Maybe I'm having a Friday afternoon problem, but I just can't make this work. My data is in a VERY LARGE table and it would not be useful to have the summary results on that tab. Additionally, there are other formulas in the summary that make using a pivot out of the question.

What I want to do is refer to my data set, and where the name is "Stiles," subtract season 1 from season 2.

If I can't make this work with a formula, I can put the calc in the data set, and then use another lookup to reference the cell in that column that matches the name. But I'd rather not add yet another column to the data set if I can help it!

Thank you!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
What I want to do is refer to my data set, and where the name is "Stiles," subtract season 1 from season 2.

If I can't make this work with a formula, I can put the calc in the data set, and then use another lookup to reference the cell in that column that matches the name. But I'd rather not add yet another column to the data set if I can help it!

Thank you!
If you have "Stiles" in A2 in the Summary Sheet then try this formula:
=SUMPRODUCT((Summary!A2=Data!A2:A1000)*(Data!C2:C1000-Data!B2:B1000))
Write your number of rows instead of the 1000.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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