iferror/sumifs

Rogerisit

Board Regular
Joined
Oct 20, 2016
Messages
70
Office Version
  1. 2019
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'}span.s1 {color: #006107}span.s2 {color: #0057d6}span.s3 {color: #ab30d6}</style>=IFERROR(SUMIFS('1'!H:H,'1'!D:D,Stage!B9),IFERROR(SUMIFS('2'!H:H,'2'!D:D,Stage!B9),))

Hi all!
Thanks in advance for any help.

The above formula doesn't work, can you help me pls. I can get the value from sheet "1", but it wont move on to get the value from sheet "2". I know this works for a vlookup but clearly I'm out of my league!!

You guys are legends :)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
It's not clear from your post, but if Stage!B9 can only appear either in '1' or '2', then you can use:

=SUMIFS('1'!H:H,'1'!D:D,Stage!B9)+SUMIFS('2'!H:H,'2'!D:D,Stage!B9)
 
Upvote 0
Just FYI, the issue with your original formula is that 0 is NOT an error.
So if the first sumif on '1' returns 0, it still returns 0, because 0 is NOT an error, therefore not trapped by iferror.
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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