Value error on addition

bucci35

Active Member
Joined
Jul 6, 2002
Messages
335
Office Version
  1. 365
Platform
  1. Windows
I have the following formula in numerous cells

=IF('Data by store'!$F$2="","",VLOOKUP(B4&D4,'Data by store'!$A$7:$K$1000,'Data by store'!$F$2,0))

When I try to sum these up when their is no value in them, I get a value error in the cell I am using to sum them in.

Any ideas
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,961
Office Version
  1. 365
Platform
  1. Windows
Return a 0 instead of ""

and format the cell as:
[=0]""

although SUM should ignore the ""
 
Upvote 0

Forum statistics

Threads
1,190,774
Messages
5,982,842
Members
439,799
Latest member
matts12

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