Sum ignore na

Excel777

Well-known Member
Joined
Jul 3, 2009
Messages
912
Office Version
  1. 2019
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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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))))
 
Upvote 0
value #N/A

THIS PART OF THE FORMULA HAVE value #N/A

indirect(address(row(bu4),match(bv$2,$a$1:$bq$1,0)))
 
Upvote 0
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)
 
Upvote 0
Yes many thanks barry i'd use iferror and try with index,

many thanks for your help,
 
Upvote 0

Forum statistics

Threads
1,213,567
Messages
6,114,344
Members
448,570
Latest member
rik81h

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