Nested SUMIFS with named range > named range is it possible?

amanda92385

New Member
Joined
Jun 27, 2016
Messages
3
Hi -

I have thousands of rows of data and I want to get the difference between the GTE Amount and the LY Award amount, but ONLY where the GTE Amount is greater than the LY Award. I'm using all named ranges. I get a value returned but it's not correct. Can I not do this with named ranges for the greater than portion of the formula? THANK YOU!!!!

SUMIFS(GTE_Amt,GTE,"Soft",GTE_Amt,">"&LY_Award) - SUMIFS(LY_Award,GTE,"Soft",GTE_Amt,">"&LY_Award)


So it would end up with 165,000 (which is the GTE amounts for Jim, Sue, Betty and Joan) - 60k (sum of LY Award for same ppl) = 105k.

Name</SPAN>GTE</SPAN>GTE Amt </SPAN>LY Award</SPAN>
Jim</SPAN>Soft</SPAN>50000</SPAN>20000</SPAN>
Joe</SPAN>Soft</SPAN>10000</SPAN>15000</SPAN>
John</SPAN>
Sally</SPAN>
Sue</SPAN>Soft</SPAN>30000</SPAN>10000</SPAN>
Betty</SPAN>Soft</SPAN>45000</SPAN>15000</SPAN>
Joan</SPAN>Soft</SPAN>40000</SPAN>15000</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL></COLGROUP>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Welcome to the forum!

Try:

=SUMPRODUCT((GTE_AMT-LY_Award),--(GTE_AMT>LY_Award),--(GTE="Soft"))
 
Last edited:
Upvote 0
Hi,

I'm getting the correct results as you described, what result are you getting?


Excel 2010
ABCDEF
1NameGTEGTE AmtLY Award
2JimSoft5000020000105000
3JoeSoft1000015000
4John
5Sally
6SueSoft3000010000
7BettySoft4500015000
8JoanSoft4000015000
Sheet1
Cell Formulas
RangeFormula
F2=SUMIFS(GTE_Amt,GTE,"Soft",GTE_Amt,">"&LY_Award)-SUMIFS(LY_Award,GTE,"Soft",GTE_Amt,">"&LY_Award)
Named Ranges
NameRefers ToCells
GTE=Sheet1!$B$2:$B$8
GTE_Amt=Sheet1!$C$2:$C$8
LY_Award=Sheet1!$D$2:$D$8
 
Upvote 0
AMAZING! Thank you so much!!! This worked perfectly. Try as I might I just cannot seem to get the hang of sumproduct - I have a serious mental block with it. Thank you so much for your help!
 
Upvote 0
Hi,

I'm getting the correct results as you described, what result are you getting?

Excel 2010
ABCDEF
1NameGTEGTE AmtLY Award
2JimSoft5000020000105000
3JoeSoft1000015000
4John
5Sally
6SueSoft3000010000
7BettySoft4500015000
8JoanSoft4000015000

<COLGROUP><COL><COL><COL><COL><COL><COL><COL></COLGROUP><THEAD>
</THEAD><TBODY>
</TBODY>
Sheet1

Worksheet Formulas
CellFormula
F2=SUMIFS(GTE_Amt,GTE,"Soft",GTE_Amt,">"&LY_Award)-SUMIFS(LY_Award,GTE,"Soft",GTE_Amt,">"&LY_Award)

<THEAD>
</THEAD><TBODY>
</TBODY>

<TBODY>
</TBODY>

Workbook Defined Names
NameRefers To
GTE=Sheet1!$B$2:$B$8
GTE_Amt=Sheet1!$C$2:$C$8
LY_Award=Sheet1!$D$2:$D$8

<THEAD>
</THEAD><TBODY>
</TBODY>

<TBODY>
</TBODY>

It was really strange, it would miss like 2 or 3 people. I had a few additional criteria in my actual file (manager = X, plan = X etc.). I couldn't figure out why it would be fine for the first 10 ppl and then 3 random ppl would be missing. Eric's sumproduct formula seems to work, thankfully!
 
Upvote 0
It was really strange, it would miss like 2 or 3 people. I had a few additional criteria in my actual file (manager = X, plan = X etc.). I couldn't figure out why it would be fine for the first 10 ppl and then 3 random ppl would be missing. Eric's sumproduct formula seems to work, thankfully!

Glad you got a working solution. Welcome to the forum.
 
Upvote 0
The SUMPRODUCT still amazes me sometimes. If you look at the help screens for it, it looks like an ordinary, and somewhat unuseful function. But when you see some of the things it can do, it's amazing.

Glad we could help! :cool:
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,457
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