displaying zeros

QuizToon

New Member
Joined
Jan 31, 2009
Messages
28
HI all,

New to this site, heard good things so thought I would have a go.

I am using a vlookup to populate a worksheet (results) which getting the information from a different worksheet called stats. All is working fine with the exception of zero's

In the worksheet stats there are some entries that are zero's and other cells which are blank.

I want the results worksheet to display a zero when there is a zero entered. Currently it is showing blank whther the donor cell is blakn or a zero.

I need to be able to count the cell with a zero as an active number, this will hep in working out averages for example.

if there is 10 cells, 8 with a 10 and 2 zeros then the average will be 8x10/10, however if one of the zero's isnt a zero but blank then the resulting answer will be different. 8x10/9

I will be using a formula to count the number of cells that are active ie, 8 with a 10 in it and 1 with a zero.

Hope that makes sense

Many thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
There's not much you can do other than brute force testing if the vlookup 'doner cell' as you call it is blank. (I like that name for it).

=IF(VLOOKUP(...)="","",VLOOKUP(...))
 
Last edited:
Upvote 0
Then compound the issue with error handling..
=IFERROR(IF(VLOOKUP(...)="","",VLOOKUP(...)),"")
 
Upvote 0
New to this site, heard good things so thought I would have a go.
According to your profile, you joined in 2009 and have made 12 posts!
:confused:
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,668
Members
448,977
Latest member
moonlight6

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