#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default VLOOKUP

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?

Thank you,
Todd
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default VLOOKUP

determine if your formula will return a zero using an if statement...

If(formula = 0, "", formula)
--
HTH...

Jim Thomlinson


"FP Novice" wrote:

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?

Thank you,
Todd

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 144
Default VLOOKUP

would you show your formula

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis










"FP Novice" wrote:

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?

Thank you,
Todd

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default VLOOKUP

One way is to use
=IF(your formula = 0,"",yourformula)

"FP Novice" wrote:

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?

Thank you,
Todd

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default VLOOKUP

=IF(ISERROR(VLOOKUP(E6&"-"&F6,Table!A:L,7,FALSE)),"",VLOOKUP(E6&"-"&F6,Table!A:L,7,FALSE))



"xlmate" wrote:

would you show your formula

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis










"FP Novice" wrote:

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?

Thank you,
Todd



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 144
Default VLOOKUP

try this if your formula is Vlookup and you want to return a blank instead of
a 0

=IF(VLOOKUP(E2,A2:B12,2,0)=0,"",VLOOKUP(E2,A2:BC12 ,2,0))

Adjust the range to yours

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis










"FP Novice" wrote:

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?

Thank you,
Todd

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default VLOOKUP

You can also format the cell to supress the zero
#,##0.00;(#,##0.00);;
"FP Novice" wrote:

=IF(ISERROR(VLOOKUP(E6&"-"&F6,Table!A:L,7,FALSE)),"",VLOOKUP(E6&"-"&F6,Table!A:L,7,FALSE))



"xlmate" wrote:

would you show your formula

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis










"FP Novice" wrote:

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?

Thank you,
Todd

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default VLOOKUP

That did supress the zero Sheeloo but it also rendered the IF formula
ineffective.

"Sheeloo" wrote:

You can also format the cell to supress the zero
#,##0.00;(#,##0.00);;
"FP Novice" wrote:

=IF(ISERROR(VLOOKUP(E6&"-"&F6,Table!A:L,7,FALSE)),"",VLOOKUP(E6&"-"&F6,Table!A:L,7,FALSE))



"xlmate" wrote:

would you show your formula

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis










"FP Novice" wrote:

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?

Thank you,
Todd

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 143
Default VLOOKUP

I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a
null value is returned the cell is populated with a '0'. My question
is how do I make it so a null value is simply an empty cell?


One way is to use
=IF(your formula = 0,"",yourformula)


Maybe I'm missing something, but isn't it possible that zero is a valid
result of "formula" that needs to be treated differently from a null value?
For example, one might be computing an AVERAGE() over a range of these
results.

I'd suggest
=IF(your_formula="","",your_formula)
instead.
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default VLOOKUP

This is a bit messy, but you do need to apply the test twice:

=IF(ISNA(MATCH(E6&"-"&F6,Table!A:A,0)),"",IF(VLOOKUP(E6&"-"&F6,Tabl*e!
A:L,7,0)="","",VLOOKUP(E6&"-"&F6,Tabl*e!A:L,7,0)))

I've used MATCH instead of the first VLOOKUP - slightly faster.

Hope this helps.

Pete

On Feb 24, 6:24*pm, FP Novice
wrote:
=IF(ISERROR(VLOOKUP(E6&"-"&F6,Table!A:L,7,FALSE)),"",VLOOKUP(E6&"-"&F6,Tabl*e!A:L,7,FALSE))



"xlmate" wrote:
would you show your formula


--
Hope this is helpful


Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you. *


Thank You


cheers, francis


"FP Novice" wrote:


I am using some lookup functions in multiple cells of a spreadsheet.
Depending on the search a cell may actually have a null value. When a null
value is returned the cell is populated with a '0'. My question is how do I
make it so a null value is simply an empty cell?


Thank you,
Todd- Hide quoted text -


- Show quoted text -




  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 143
Default VLOOKUP

This is a bit messy, but you do need to apply the test twice:

=IF(ISNA(MATCH(E6&"-"&F6,Table!A:A,0)),"",IF(VLOOKUP(E6&"-"&F6,Tabl*e!
A:L,7,0)="","",VLOOKUP(E6&"-"&F6,Tabl*e!A:L,7,0)))


Slightly less messy:
=IF(ISERROR(1/LEN(your_formula)),"", your_formula)

Explanation:

If your_formula results in a lookup error (or other error), then so does
LEN(your_formula) and 1/LEN(your_formula).

OTOH, if your_formula results in an empty string, then 1/LEN(your_formula)
is a divide-by-zero error.
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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 04:33 PM.

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

About Us

"It's about Microsoft Excel"