Formula Not Returning Zero Values

meppwc

Well-known Member
Joined
May 16, 2003
Messages
604
Office Version
  1. 365
Platform
  1. Windows
The formula below which is located in may places of my worksheet, populates all numbers that it finds from the Table worksheet unless the value in the Table is "0". What would cause that?
=IFERROR(VLOOKUP(F2,Table!$A:$AM,26,FALSE),IFERROR(VLOOKUP(H2,Table!$A:$AM,26,FALSE),0))
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
the cell is blank and I expect to see a "0".............note, the cell with a zero in it is not a calculated cell (no formula)...........it is a General field
 
Upvote 0
the cell is blank and I expect to see a "0".............note, the cell with a zero in it is not a calculated cell (no formula)...........it is a General field
Maybe you have the display of zeros turned off. Open up Excel Options, select the Advanced item and scroll down till you find the options for "this worksheet"... find the "Show a zero in cells that have zero value" checkbox and put a check in it, then OK back to the sheet. Do the zeros now show up?
 
Upvote 0
the settings are set to display zeros.
Do you have a custom format set for the cell, in particular, this one General;General; perhaps?

Another possibility is that you may have a Conditional Format, one that hides zero, set for the cell.
 
Upvote 0
no custom or conditional formats set
The only other thing I can think of is if you have an event code procedure (either in the sheet's code module or the ThisWorkbook code module) set up for that cell. Failing that, I am out of ideas.
 
Upvote 0
the cell is blank and I expect to see a "0".............note, the cell with a zero in it is not a calculated cell (no formula)...........it is a General field

Does this enforce what you want to obtain?

=IFERROR(N(VLOOKUP(F2,Table!$A:$AM,26,FALSE)),IFERROR(N(VLOOKUP(H2,Table!$A:$AM,26,FALSE)),0))
 
Upvote 0
That worked Aladin...........thanks so much !!!!
Not sure what the addition of "N" does though

Spoke too soon...........now all values are 0 in the entire column
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,383
Messages
6,119,196
Members
448,874
Latest member
Lancelots

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