Transformation of IF formula to embed another formula

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
137
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I have to transform this formula
Excel Formula:
=IF(ISBLANK(A2),1,SUMIFS('Export Results ITD thru Mar2021'!$N$2:$N$99998, 'Export Results ITD thru Mar2021'!$K$2:$K$99998,"*" & $A$2 & "*",'Export Results ITD thru Mar2021'!$B$2:$B$99998,$F$1,'Export Results ITD thru Mar2021'!$D$2:$D$99998,Calc!E2))
by substituting "1" at the beginning of the formula (prior to SUMIFS) with
Excel Formula:
SUMIFS('Export Results ITD thru Mar2021'!$N$2:$N$99998, 'Export Results ITD thru Mar2021'!$L$2:$L$99998,$A$4,'Export Results ITD thru Mar2021'!$B$2:$B$99998,$F$1,'Export Results ITD thru Mar2021'!$D$2:$D$99998,Calc!E2
Tried entering as is, or enclosing this bit into brackets, doesn't work... must be missing something obvious.
The second component works on its own, but not when embedded the way I try it to embed...
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
6,007
Office Version
  1. 2016
Platform
  1. Windows
Hi,

May be you're just missing the closing bracket for your 2nd formula?

Try this, Untested:

Excel Formula:
=IF(ISBLANK(A2),SUMIFS('Export Results ITD thru Mar2021'!$N$2:$N$99998, 'Export Results ITD thru Mar2021'!$L$2:$L$99998,$A$4,'Export Results ITD thru Mar2021'!$B$2:$B$99998,$F$1,'Export Results ITD thru Mar2021'!$D$2:$D$99998,Calc!E2),SUMIFS('Export Results ITD thru Mar2021'!$N$2:$N$99998, 'Export Results ITD thru Mar2021'!$K$2:$K$99998,"*" & $A$2 & "*",'Export Results ITD thru Mar2021'!$B$2:$B$99998,$F$1,'Export Results ITD thru Mar2021'!$D$2:$D$99998,Calc!E2))
 
Solution

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
137
Office Version
  1. 2016
Platform
  1. Windows
Doh. How could I possibly miss that... Thank you jtakw!
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
6,007
Office Version
  1. 2016
Platform
  1. Windows
You're welcome, glad to help.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,187
Messages
5,640,693
Members
417,161
Latest member
Devon150

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
Top