VLOOKUP PROBLEM

mrbeanyuk

Board Regular
Joined
Nov 30, 2005
Messages
212
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
Joined
Dec 15, 2005
Messages
818
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)))
 

Forum statistics

Threads
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.
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