Having problems adding several columns up.

georj

Board Regular
Joined
Oct 13, 2003
Messages
74
i have several lookups like this one "=VLOOKUP($P2,weight,2,FALSE)" when it can not find something it puts #N/A i have two other lookups which do the same thing sort of thing but when i come to add the columns together it cant because of the #N/A now two columns may have numbers in them but the third might not is there a way round this please.

thank you for your time and help

Jason
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
You can either eliminate the error like this:

=IF(ISNA(VLOOKUP($P2,weight,2,FALSE)),0,VLOOKUP($P2,weight,2,FALSE))

or sum excluding the NA values like this:

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

One way is this:
=IF(ISNA(VLOOKUP($P2,weight,2,0)),"",VLOOKUP($P2,weight,2,0))
 
Upvote 0
Thank you both for all your help both ways worked.
have a good day and take care

Jason
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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