If isna vlookup

Dare

New Member
Joined
Mar 27, 2009
Messages
14
Hi All,

I need some help please. (I will get my head round excel one day)

I'm using a vlookup to find a number and then use another vlookup to find another number, and then add them up. So far so good.

My problem is when i get a N/A for a number. How do i get N/A to = zero and then add the number found.

Thanks in advance.

Ben
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Hi All,

I need some help please. (I will get my head round excel one day)

I'm using a vlookup to find a number and then use another vlookup to find another number, and then add them up. So far so good.

My problem is when i get a N/A for a number. How do i get N/A to = zero and then add the number found.

Thanks in advance.

Ben

Care to post the formula you have?
 
Upvote 0

Dare

New Member
Joined
Mar 27, 2009
Messages
14
Sorry.

=VLOOKUP("W900999N Total",A12:E295,3,0)+VLOOKUP("W850225N Total",A12:E295,3,0)

If W900999N or W850225N is N/A i just want the number that is found.

Thanks :eek:
 
Upvote 0

Swaroon

Active Member
Joined
Nov 18, 2005
Messages
284
Office Version
  1. 365
How about ?

=IF(ISERROR(VLOOKUP("W900999N Total",A12:E295,3,0)=TRUE),0,VLOOKUP("W900999N Total",A12:E295,3,0)+IF(ISERROR(+VLOOKUP("W850225N Total",A12:E295,3,0)=TRUE),0,VLOOKUP("W850225N Total",A12:E295,3,0)))
 
Upvote 0

Swaroon

Active Member
Joined
Nov 18, 2005
Messages
284
Office Version
  1. 365
ADVERTISEMENT
Missed off a couple of brackets

=(IF(ISERROR(VLOOKUP("W900999N Total",A12:E295,3,0)=TRUE),0,VLOOKUP("W900999N Total",A12:E295,3,0)))+(+IF(ISERROR(+VLOOKUP("W850225N Total",A12:E295,3,0)=TRUE),0,VLOOKUP("W850225N Total",A12:E295,3,0)))
 
Upvote 0

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Sorry.

=VLOOKUP("W900999N Total",A12:E295,3,0)+VLOOKUP("W850225N Total",A12:E295,3,0)

If W900999N or W850225N is N/A i just want the number that is found.

Thanks :eek:

Wouldn't

=SUM(SUMIF($A$12:$A$295,{"W900999N Total","W850225N Total"},$C$12:$C$295))

suffice?
 
Upvote 0

Forum statistics

Threads
1,195,702
Messages
6,011,200
Members
441,594
Latest member
AVO

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