Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default Lookup to Show Empty Cell

Okay, I have my lookup to zero but now realize that in the future that will
mess up my averages if a person actually gets a zero. So how can I get this
to just show an empty cell as that doesn't appear to impact the averages like
a zero will.

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),0,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Thank you


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default Lookup to Show Empty Cell

Sum the values and divide by a countif

So it would be like

Sum(B2:B51)/Countif(B2:B51,"0")

"RoadKill" wrote:

Okay, I have my lookup to zero but now realize that in the future that will
mess up my averages if a person actually gets a zero. So how can I get this
to just show an empty cell as that doesn't appear to impact the averages like
a zero will.

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),0,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Thank you


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Lookup to Show Empty Cell

Instead of the zero in the middle, change it to "":

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),"" ,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Hope this helps.

Pete

"RoadKill" wrote in message
...
Okay, I have my lookup to zero but now realize that in the future that
will
mess up my averages if a person actually gets a zero. So how can I get
this
to just show an empty cell as that doesn't appear to impact the averages
like
a zero will.

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),0,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Thank you




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default Lookup to Show Empty Cell

Actually I tried that first, and it still gave me the zero.

"Pete_UK" wrote:

Instead of the zero in the middle, change it to "":

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),"" ,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Hope this helps.

Pete

"RoadKill" wrote in message
...
Okay, I have my lookup to zero but now realize that in the future that
will
mess up my averages if a person actually gets a zero. So how can I get
this
to just show an empty cell as that doesn't appear to impact the averages
like
a zero will.

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),0,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Thank you





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Lookup to Show Empty Cell

Intercept the zero:

=IF(your_formula=0,"",your_formula)

AVERAGE() as you noted will ignore zeros.
--
Gary''s Student - gsnu200776


"RoadKill" wrote:

Actually I tried that first, and it still gave me the zero.

"Pete_UK" wrote:

Instead of the zero in the middle, change it to "":

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),"" ,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Hope this helps.

Pete

"RoadKill" wrote in message
...
Okay, I have my lookup to zero but now realize that in the future that
will
mess up my averages if a person actually gets a zero. So how can I get
this
to just show an empty cell as that doesn't appear to impact the averages
like
a zero will.

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),0,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Thank you







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Lookup to Show Empty Cell

In that case you have found a match in your table, but the return value is 0
(the corresponding cell in the table could be ""). You could change your
formula to the following to overcome it:

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),""
,IF(VLOOKUP($B4,'3-25'!$A$2:$C$51,2,0)=0,""
,VLOOKUP($B4,'3-25'!$A$2:$C$51,2,0)))

Hope this helps.

Pete

"RoadKill" wrote in message
...
Actually I tried that first, and it still gave me the zero.

"Pete_UK" wrote:

Instead of the zero in the middle, change it to "":

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),"" ,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Hope this helps.

Pete

"RoadKill" wrote in message
...
Okay, I have my lookup to zero but now realize that in the future that
will
mess up my averages if a person actually gets a zero. So how can I get
this
to just show an empty cell as that doesn't appear to impact the
averages
like
a zero will.

=IF(ISNA(VLOOKUP($B4, '3-25'!$A$2:$C$51,2,0)),0,VLOOKUP($B4,
'3-25'!$A$2:$C$51,2,0))

Thank you







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using a vlookup, can i use isblank to show an empty cell Sandy Excel Worksheet Functions 7 January 30th 08 07:21 PM
Show a blank result in a cell when there is no value in the "Lookup" cell Michael Slater New Users to Excel 2 August 5th 07 08:08 PM
show 0.00 if referenced cell is empty David D Excel Worksheet Functions 8 June 28th 07 02:54 AM
Using if function to show blank when cell in other sheet is empty Billznik Excel Worksheet Functions 2 August 9th 06 03:46 AM
Need cells to show as zero or empty BelkyBear Excel Worksheet Functions 3 November 7th 05 08:36 PM


All times are GMT +1. The time now is 09:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"