#1   Report Post  
Krefty
 
Posts: n/a
Default Worksheet Function?

Thanks in advance for reading this. I have a lookup function returning
whatever sheet (X) has from a specific cell. I would like it to return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am using....


  #2   Report Post  
James Hamilton
 
Posts: n/a
Default

Try this....

=if(iserror(vlookup(yourlookupfunction))," ",(vlookup(yourlookupfuntion)))

You can put some text, or nothing between the set of " ".

Also, just check the number of brackets, as you can make a mistake quite
easily on this.


James


"Krefty" wrote:

Thanks in advance for reading this. I have a lookup function returning
whatever sheet (X) has from a specific cell. I would like it to return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am using....


  #3   Report Post  
CLR
 
Posts: n/a
Default

Replace your formula with this

=IF(('Daily Input'!U42)=0,"",('Daily Input'!U42))

Vaya con Dios,
Chuck, CABGx3


"Krefty" wrote in message
...
Thanks in advance for reading this. I have a lookup function returning
whatever sheet (X) has from a specific cell. I would like it to return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am using....




  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

What happens if U42 really holds a 0?

Maybe a slight change would be better:

=IF('Daily Input'!U42="","",'Daily Input'!U42)

(I got rid of some ()'s, too.)



CLR wrote:

Replace your formula with this

=IF(('Daily Input'!U42)=0,"",('Daily Input'!U42))

Vaya con Dios,
Chuck, CABGx3

"Krefty" wrote in message
...
Thanks in advance for reading this. I have a lookup function returning
whatever sheet (X) has from a specific cell. I would like it to return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am using....



--

Dave Peterson
  #5   Report Post  
CLR
 
Posts: n/a
Default

Uh-huh, maybe..........I suppose it boils down to what is in the "unused"
cell, maybe the OP don't want "either" a "" or a 0 to return 0, then

=IF(OR(('Daily Input'!U42)=0,('Daily Input'!U42)=""),"",('Daily Input'!U42))

(I gave the OP back their ()'s.....some folks just feel more comfortable
with them)<g

Vaya con Dios,
Chuck, CABGx3





"Dave Peterson" wrote in message
...
What happens if U42 really holds a 0?

Maybe a slight change would be better:

=IF('Daily Input'!U42="","",'Daily Input'!U42)

(I got rid of some ()'s, too.)



CLR wrote:

Replace your formula with this

=IF(('Daily Input'!U42)=0,"",('Daily Input'!U42))

Vaya con Dios,
Chuck, CABGx3

"Krefty" wrote in message
...
Thanks in advance for reading this. I have a lookup function

returning
whatever sheet (X) has from a specific cell. I would like it to

return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am using....



--

Dave Peterson





  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

I don't think you need the "or" at all. Just checking for 0 will pick up the
"empty" 0 and the "real" 0.

So it's back to your original or the minor modification version.

CLR wrote:

Uh-huh, maybe..........I suppose it boils down to what is in the "unused"
cell, maybe the OP don't want "either" a "" or a 0 to return 0, then

=IF(OR(('Daily Input'!U42)=0,('Daily Input'!U42)=""),"",('Daily Input'!U42))

(I gave the OP back their ()'s.....some folks just feel more comfortable
with them)<g

Vaya con Dios,
Chuck, CABGx3

"Dave Peterson" wrote in message
...
What happens if U42 really holds a 0?

Maybe a slight change would be better:

=IF('Daily Input'!U42="","",'Daily Input'!U42)

(I got rid of some ()'s, too.)



CLR wrote:

Replace your formula with this

=IF(('Daily Input'!U42)=0,"",('Daily Input'!U42))

Vaya con Dios,
Chuck, CABGx3

"Krefty" wrote in message
...
Thanks in advance for reading this. I have a lookup function

returning
whatever sheet (X) has from a specific cell. I would like it to

return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am using....



--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
CLR
 
Posts: n/a
Default

Good point Dave................actually any of the three might serve the
OP's purpose.........

Vaya con Dios,
Chuck, CABGx3



"Dave Peterson" wrote in message
...
I don't think you need the "or" at all. Just checking for 0 will pick up

the
"empty" 0 and the "real" 0.

So it's back to your original or the minor modification version.

CLR wrote:

Uh-huh, maybe..........I suppose it boils down to what is in the

"unused"
cell, maybe the OP don't want "either" a "" or a 0 to return 0, then

=IF(OR(('Daily Input'!U42)=0,('Daily Input'!U42)=""),"",('Daily

Input'!U42))

(I gave the OP back their ()'s.....some folks just feel more comfortable
with them)<g

Vaya con Dios,
Chuck, CABGx3

"Dave Peterson" wrote in message
...
What happens if U42 really holds a 0?

Maybe a slight change would be better:

=IF('Daily Input'!U42="","",'Daily Input'!U42)

(I got rid of some ()'s, too.)



CLR wrote:

Replace your formula with this

=IF(('Daily Input'!U42)=0,"",('Daily Input'!U42))

Vaya con Dios,
Chuck, CABGx3

"Krefty" wrote in message
...
Thanks in advance for reading this. I have a lookup function

returning
whatever sheet (X) has from a specific cell. I would like it to

return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am

using....



--

Dave Peterson


--

Dave Peterson



  #8   Report Post  
Krefty
 
Posts: n/a
Default

Thank You

"CLR" wrote:

Replace your formula with this

=IF(('Daily Input'!U42)=0,"",('Daily Input'!U42))

Vaya con Dios,
Chuck, CABGx3


"Krefty" wrote in message
...
Thanks in advance for reading this. I have a lookup function returning
whatever sheet (X) has from a specific cell. I would like it to return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am using....





  #9   Report Post  
CLR
 
Posts: n/a
Default

You're welcome Krefty, but read on.........Dave's adaptation might be more
to your liking, or even my second offering........

Vaya con Dios,
Chuck, CABGx3


"Krefty" wrote in message
...
Thank You

"CLR" wrote:

Replace your formula with this

=IF(('Daily Input'!U42)=0,"",('Daily Input'!U42))

Vaya con Dios,
Chuck, CABGx3


"Krefty" wrote in message
...
Thanks in advance for reading this. I have a lookup function

returning
whatever sheet (X) has from a specific cell. I would like it to

return
nothing if I am not useing that cell, right now it brings in a 0?

=('Daily Input'!U42) This is the actual command that I am using....







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
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
SUMIF function referring to values on different Worksheet TeeBee0831 Excel Worksheet Functions 10 May 3rd 05 10:28 PM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
The Help on the Excel Edate worksheet function contains an error:. Guido Excel Worksheet Functions 1 January 20th 05 01:42 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 06:26 AM.

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"