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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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