Formula help

cgendron

Board Regular
Joined
Apr 13, 2011
Messages
111
i think what i am trying to do is pretty simple but i cant figure it out. Basically i have two totals i want to add....so =A4+B4

Sometimes B4 will be blank but i still want to show the value of A4 with this formula.

So in some cases =10+20 equals 30
in other cases =10+(blank value) equals 10
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
If B4 is really empty, it will work even though it is blank.
What is happening now?
If you are getting a #VALUE error, that means that something else is in there, like a single space or something else.
If that is the case, how is B4 being populated (if it is a formula, please provide your formula)?
 
Last edited:
Upvote 0
cgendron, Good afternoon.

When you say "blank" it means equal to "" or is equal to space?

To avoid any problem, try to use: =SUM(A4:B4)

Is that what you want?

I hope it helps.
 
Upvote 0
If B4 is really empty, it will work even though it is blank.
What is happening now?
If you are getting a #VALUE error, that means that something else is in there, like a single space or something else.
If that is the case, how is B4 being populated (if it is a formula, please provide your formula)?


Ya i'm getting a value error. Weird because i swear it wasnt doing that the other day. But yes B4 gets populated from a formula =IF(ISERROR(VLOOKUP(A7,Sheet3!$A$12:$K$26,1,FALSE)),"",VLOOKUP(A7,Sheet3!$A$12:$K$26,2,FALSE))
if a selection is made in A5
 
Upvote 0
Ya i'm getting a value error. Weird because i swear it wasnt doing that the other day. But yes B4 gets populated from a formula =IF(ISERROR(VLOOKUP(A7,Sheet3!$A$12:$K$26,1,FALSE)),"",VLOOKUP(A7,Sheet3!$A$12:$K$26,2,FALSE))
if a selection is made in A5

I guess its giving me that because i'm trying to add a field that is blank that has a formula in it?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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