referenced blank cell returned zero (0) as values

Abdmujib

Board Regular
Joined
May 15, 2022
Messages
123
Office Version
  1. 2021
Platform
  1. Windows
Hello everyone,

The problem is that, I have some values I want to reference from one sheet to another in order to use it to plot a graph.

so when the cell that is referenced is blank, it will return zero (0) as the value, which the zero would be plotted.
I tried using if() to put "", but it sees it as a text and spoil the graph.

zero2.PNG


in the picture above, let assumed Column B,C is on sheet 1, while Column I,J,K are are on sheet 2. I reference the depth value in sheet 1 to sheet 2 and same goes to Value, but the issue is the zero that is there. I want it to return blank too, and not space ("") that it will see as a text data type.


Thank you
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
See if something like this would help. The #NA values should not show up on your graph.

24 08 17.xlsm
BCDEFGHIJ
42323
54444
66565
788#N/A
81010#N/A
91212#N/A
101414#N/A
Stop blanks as 0
Cell Formulas
RangeFormula
J4:J10J4=LET(v,VLOOKUP(I4,B$4:C$10,2,0),IF(v="",NA(),v))
 
Upvote 0
See if something like this would help. The #NA values should not show up on your graph.

24 08 17.xlsm
BCDEFGHIJ
42323
54444
66565
788#N/A
81010#N/A
91212#N/A
101414#N/A
Stop blanks as 0
Cell Formulas
RangeFormula
J4:J10J4=LET(v,VLOOKUP(I4,B$4:C$10,2,0),IF(v="",NA(),v))
Thank you sir, the laptop am using to do it, is an office laptop and it uses 2016 version of excel not 365 sir, so the Let() won't work sir
 
Upvote 0
In future if you need an answer in a different version to that in your forum profile, best to say so in your opening post. ;)

Try this instead

24 08 17.xlsm
BCDEFGHIJ
42323
54444
66565
788#N/A
81010#N/A
91212#N/A
101414#N/A
Stop blanks as 0
Cell Formulas
RangeFormula
J4:J10J4=IF(VLOOKUP(I4,B$4:C$10,2,0)="",NA(),VLOOKUP(I4,B$4:C$10,2,0))
 
Upvote 1
See if something like this would help. The #NA values should not show up on your graph.

24 08 17.xlsm
BCDEFGHIJ
42323
54444
66565
788#N/A
81010#N/A
91212#N/A
101414#N/A
Stop blanks as 0
Cell Formulas
RangeFormula
J4:J10J4=LET(v,VLOOKUP(I4,B$4:C$10,2,0),IF(v="",NA(),v))
It works sir, I split out the formula for the Let() function into another cell. then I applied the next argument. It works but, the issue was that the blank appeared as 0 not "", so I make the Let() argument =0.

zero 3.PNG

Then from your formula I was able to have a good idea that NA() would work, so I used isblank() in my previous formula.
Tough I am not sure yet the 2016 has Isblank(), I will get to check when I get to office today, if not I will go with your formula

Thank you so much sir
 
Upvote 0
If you are not actually looking up the value from the first range but targeting it directly then your ISBLANK formula should be fine, or you could shorten it to
Excel Formula:
=IF(C4="",NA(),C4)
 
Upvote 1
Solution

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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