Formula help #Value

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,079
Office Version
  1. 365
Platform
  1. Windows
Hi so I sue this formula below and works if 2 values are found on sheet2, but if only 1 value is found lets say in I and doesn't find value in L it returns Value. Reason why I am using =0,text is because if it finds nothing I need it to return blank rather then 0.



=IF(Sheet2!I8=0,TEXT(Sheet2!I8,""),Sheet2!I8)+IF(Sheet2!L8=0,TEXT(Sheet2!L8,""),Sheet2!L8)
 

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
You're adding text to a nnumber. Example: ""+4 which would give #VALUE !
Try:
=SUM(IF(Sheet2!I8=0,TEXT(Sheet2!I8,""),Sheet2!I8),IF(Sheet2!L8=0,TEXT(Sheet2!L8,""),Sheet2!L8))
 
Upvote 0
for some reason i tried both and thanks for the reply. I still get #value if lets say I has a value of 40 in column I and L has nothing ill get value. I just checked sheet2 also to mkae sure the columns are not text and they are not. i dont know
 
Last edited:
Upvote 0
Phil also i see yours gives you #value if both have values weird
 
Last edited:
Upvote 0
Do you have formulas in your Sheet2 cells of I8 and L8, or are you typing those values into those cells?

My formula should work based on values, but if there is text in them, or a formula that is returning text and not values it could be causing this then.
 
Upvote 0
But if you click your formULA right I and L cells higlight on same sheet not off of sheet2
 
Upvote 0
Sorry, got busy at work, overlooked something, try this version.

Code:
=IF(OR(Sheet2!I8=0,Sheet2!L8=0),"",Sheet2!I8+Sheet2!L8)
 
Upvote 0
thats ok thanks for trying to help me. So i tried this almost there, but now if there is value in one and not the other is goes blank. So i tried it on a value of 40 in column I and nothing in L and it returns nothing instead it should return 40
 
Upvote 0
lets say I has a value of 40 in column I and L has nothing ill get value
If column I was the number 40, and L is TRULY blank, then adding those two cells would return 40.
If it is returning the #VALUE ! error, then column L is NOT really blank. It probably has something like a space in it.

It is easy to confirm that, like this (if it was cell L8):
=LEN(L8)
If that formula returns anything other than 0, than that cell is NOT really blank.
 
Upvote 0

Forum statistics

Threads
1,215,337
Messages
6,124,340
Members
449,155
Latest member
ravioli44

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