#VALUE! error while using sum two cells having VLOOKUP

mwvirk

Active Member
Joined
Mar 2, 2011
Messages
286
Office Version
  1. 2016
Platform
  1. Windows
how i can resolve this #value! error since i have 2 different formulas in cell BR & BS:

Cell Formulas
RangeFormula
BR32:BR48BR32=IF(ISNA(VLOOKUP(A32,'PSX Portfolio Status'!A:BN,31,FALSE)),"",VLOOKUP(A32,'PSX Portfolio Status'!A:BN,31,FALSE))
BS32:BS48BS32=IF(ISNA(VLOOKUP(A32,'PSX Portfolio Status'!A:BN,54,FALSE)),"",VLOOKUP(A32,'PSX Portfolio Status'!A:BN,54,FALSE))
BT32:BT48BT32=BR32+BS32
Named Ranges
NameRefers ToCells
'PSX Portfolio Status'!_FilterDatabase='PSX Portfolio Status'!$A$1:$BN$1BR32:BS48





1723588560457.png
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Just change your formula to use Sum.
(Sum ignores "" or treats is as 0, while +/- does not)
Excel Formula:
=SUM(BR32:BS32)

Since your 2 references are contiguous, stick with the above but if they weren't using a comma would let you add multiple non-contiguous cells without the VALUE issue.
Excel Formula:
=SUM(BS32, BT32)
 
Upvote 1
Solution
BTW, you can write your column BR & BS formulas more simply. For example, instead of
Excel Formula:
=IF(ISNA(VLOOKUP(A32,'PSX Portfolio Status'!A:BN,31,FALSE)),"",VLOOKUP(A32,'PSX Portfolio Status'!A:BN,31,FALSE))
you can use
Excel Formula:
=IFNA(VLOOKUP(A32,'PSX Portfolio Status'!A:BN,31,FALSE),"")
 
Upvote 1
Just change your formula to use Sum.
(Sum ignores "" or treats is as 0, while +/- does not)
Excel Formula:
=SUM(BR32:BS32)

Since your 2 references are contiguous, stick with the above but if they weren't using a comma would let you add multiple non-contiguous cells without the VALUE issue.
Excel Formula:
=SUM(BS32, BT32)
used Sum(BR32:BS32) and it's ok.
just a small concern. is it possible to avoid 0.00

1723734968017.png
 
Upvote 0
thank you but i don't want to hide the 0 value for the entire sheet
Note that you can apply that formatting to just the range you want, you do not need to do it for the entire sheet!
 
Upvote 1

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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