# Transformation of IF formula to embed another formula

#### virtuosok

##### Board Regular
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
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))``

#### virtuosok

##### Board Regular
Doh. How could I possibly miss that... Thank you jtakw!

Replies
6
Views
302
Replies
1
Views
170
Replies
22
Views
315
Replies
3
Views
252
Replies
10
Views
157

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.

### Which adblocker are you using?

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

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