# Sum ignore na

#### Excel777

##### Well-known Member
Hi,

i have two these formulas

i want to sum and ignore na to get result without using if statement

=indirect(address(row(bu4),match(bu\$2,\$a\$1:\$bq\$1,0)))
+indirect(address(row(bu4),match(bv\$2,\$a\$1:\$bq\$1,0)))

thanks in advance for help

### Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

#### barry houdini

##### MrExcel MVP
Do you mean a text value "na" or error value #N/A? If it's the former then try

=SUM(indirect(address(row(bu4),match(bu\$2,\$a\$1:\$bq\$1,0))),indirect(address(row(bu4),match(bv\$2,\$a\$1:\$bq\$1,0))))

#### Excel777

##### Well-known Member
value #N/A

THIS PART OF THE FORMULA HAVE value #N/A

indirect(address(row(bu4),match(bv\$2,\$a\$1:\$bq\$1,0)))

#### barry houdini

##### MrExcel MVP
Which version of excel are you using? - in Excel 2007 you can use IFERROR to return 0 instead of an error, i.e.

=iferror(indirect(address(row(bu4),match(bv\$2,\$a\$1:\$bq\$1,0))),0)

although I'd suggest that it might be easier to use INDEX rather than INDIRECT and ADDRESS, like this

=IFERROR(INDEX(4:4,MATCH(BV\$2,\$A\$1:\$BQ\$1,0)),0)

#### Excel777

##### Well-known Member
Yes many thanks barry i'd use iferror and try with index,

many thanks for your help,

Replies
3
Views
280
Replies
3
Views
94
Replies
6
Views
358
Replies
13
Views
447
Replies
8
Views
227

Threads
1,195,665
Messages
6,011,029
Members
441,580
Latest member
BornholmerBjarne

### 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

### 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