# VLOOKUP PROBLEM

#### mrbeanyuk

##### Board Regular
Hi there.

I have a wee problem that I need resolving....

EXAMPLE

Cells A, B and C in row one have a figure in each using VLOOKUP. However, cell B has #N/A which is what I want - so no error with that.

The thing I need to resolve is in cell D I want it to add up A, B and C, but because one of the cells says #N/A it returns #N/A as the answer.

I want cell D to calculate A, B and C and if #N/A appears in any cell, ignore it.

Is this possible?

Thanks

### Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

#### lozzablake

##### Well-known Member
just use an if statement with an ISNA check:

=IF(ISNA(A4),B4+C4,IF(ISNA(B4),A4+C4,IF(ISNA(C4),A4+B4,A4+B4+C4)))

##### Well-known Member
Hello,

Do you mean

=IF(ISNA(SUM(A1:C1)),"",SUM(A1:C1))

#### Domski

##### Well-known Member
Or:

=SUMIF(A1:C1,"<>#N/A")

Replies
4
Views
260
Replies
8
Views
205
Replies
1
Views
101
Replies
1
Views
105
Replies
4
Views
294

1,171,062
Messages
5,873,553
Members
432,983
Latest member
sam97

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