PC Review


Reply
Thread Tools Rate Thread

Display number only if entered in a cell

 
 
JW
Guest
Posts: n/a
 
      6th Mar 2009
Hi,

I am trying to display data with a IF function saying, that if greater than
0 then display this formula, if false then show " ". However, I need to
display the number 0 if enterd in the cell as it is combined with other cells
showing a cumulative number.

=IF('Page 2'!K20+'Page 2'!L20>0;'Page 2'!K20+'Page 2'!L20;" ")

How do if use the IF function to show data ONLY if it has been entered in a
cell and can of course be the no. 0.

Jacob
 
Reply With Quote
 
 
 
 
Luke M
Guest
Posts: n/a
 
      6th Mar 2009
Sounds like you want to check to make sure a number has been entered.

=IF(AND(ISNUMBER('Page 2'!K20),ISNUMBER('Page 2'!L20),'Page 2'!K20+'Page
2'!L20>0),'Page 2'!K20+'Page 2'!L20,"")

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"JW" wrote:

> Hi,
>
> I am trying to display data with a IF function saying, that if greater than
> 0 then display this formula, if false then show " ". However, I need to
> display the number 0 if enterd in the cell as it is combined with other cells
> showing a cumulative number.
>
> =IF('Page 2'!K20+'Page 2'!L20>0;'Page 2'!K20+'Page 2'!L20;" ")
>
> How do if use the IF function to show data ONLY if it has been entered in a
> cell and can of course be the no. 0.
>
> Jacob

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      6th Mar 2009
=IF(AND(COUNT('Page 2'!K20:L20)=2,'Page 2'!K20+'Page 2'!L20>0),'Page
2'!K20+'Page 2'!L20,"")


--
Biff
Microsoft Excel MVP


"Luke M" <(E-Mail Removed)> wrote in message
news:B0D782DC-67B4-479C-817C-(E-Mail Removed)...
> Sounds like you want to check to make sure a number has been entered.
>
> =IF(AND(ISNUMBER('Page 2'!K20),ISNUMBER('Page 2'!L20),'Page 2'!K20+'Page
> 2'!L20>0),'Page 2'!K20+'Page 2'!L20,"")
>
> --
> Best Regards,
>
> Luke M
> *Remember to click "yes" if this post helped you!*
>
>
> "JW" wrote:
>
>> Hi,
>>
>> I am trying to display data with a IF function saying, that if greater
>> than
>> 0 then display this formula, if false then show " ". However, I need to
>> display the number 0 if enterd in the cell as it is combined with other
>> cells
>> showing a cumulative number.
>>
>> =IF('Page 2'!K20+'Page 2'!L20>0;'Page 2'!K20+'Page 2'!L20;" ")
>>
>> How do if use the IF function to show data ONLY if it has been entered in
>> a
>> cell and can of course be the no. 0.
>>
>> Jacob



 
Reply With Quote
 
JW
Guest
Posts: n/a
 
      6th Mar 2009
Thank you for the below. It was in the ball park, but I had to play with it a
litte. I came up with:
=IF(AND(ISNUMBER('Page 2'!K20);ISNUMBER('Page 2'!L20);'Page 2'!K20+'Page
2'!L20<" ");'Page 2'!K20+'Page 2'!L20;"")

The.....L20<" "......seemed to make the formula work? Anyways, thanks for
your speedily reply.

"Luke M" wrote:

> Sounds like you want to check to make sure a number has been entered.
>

=IF(AND(ISNUMBER('Page 2'!K20),ISNUMBER('Page 2'!L20),'Page 2'!K20+'Page
2'!L20>0),'Page 2'!K20+'Page 2'!L20,"")
>
> --
> Best Regards,
>
> Luke M
> *Remember to click "yes" if this post helped you!*
>
>
> "JW" wrote:
>
> > Hi,
> >
> > I am trying to display data with a IF function saying, that if greater than
> > 0 then display this formula, if false then show " ". However, I need to
> > display the number 0 if enterd in the cell as it is combined with other cells
> > showing a cumulative number.
> >
> > =IF('Page 2'!K20+'Page 2'!L20>0;'Page 2'!K20+'Page 2'!L20;" ")
> >
> > How do if use the IF function to show data ONLY if it has been entered in a
> > cell and can of course be the no. 0.
> >
> > Jacob

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      6th Mar 2009
I'm curious...

'Page 2'!K20+'Page 2'!L20<" "

What is the logic you're testing for in that expression?

Here's what that means in "Excelese":

If the sum of K20 + L20 is less than a space character...

And in Excel, that will *always* be TRUE as long as K20+L20 returns *any*
number.

To see how that works try these formulas:

=0<" "
=10000000000<" "

Both will return TRUE

--
Biff
Microsoft Excel MVP


"JW" <(E-Mail Removed)> wrote in message
news:6256EAC2-A40A-46BF-9DA8-(E-Mail Removed)...
> Thank you for the below. It was in the ball park, but I had to play with
> it a
> litte. I came up with:
> =IF(AND(ISNUMBER('Page 2'!K20);ISNUMBER('Page 2'!L20);'Page 2'!K20+'Page
> 2'!L20<" ");'Page 2'!K20+'Page 2'!L20;"")
>
> The.....L20<" "......seemed to make the formula work? Anyways, thanks for
> your speedily reply.
>
> "Luke M" wrote:
>
>> Sounds like you want to check to make sure a number has been entered.
>>

> =IF(AND(ISNUMBER('Page 2'!K20),ISNUMBER('Page 2'!L20),'Page 2'!K20+'Page
> 2'!L20>0),'Page 2'!K20+'Page 2'!L20,"")
>>
>> --
>> Best Regards,
>>
>> Luke M
>> *Remember to click "yes" if this post helped you!*
>>
>>
>> "JW" wrote:
>>
>> > Hi,
>> >
>> > I am trying to display data with a IF function saying, that if greater
>> > than
>> > 0 then display this formula, if false then show " ". However, I need to
>> > display the number 0 if enterd in the cell as it is combined with other
>> > cells
>> > showing a cumulative number.
>> >
>> > =IF('Page 2'!K20+'Page 2'!L20>0;'Page 2'!K20+'Page 2'!L20;" ")
>> >
>> > How do if use the IF function to show data ONLY if it has been entered
>> > in a
>> > cell and can of course be the no. 0.
>> >
>> > Jacob



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to display a number when a specific text is entered Desperate Microsoft Excel Misc 3 31st Dec 2007 05:03 AM
Number entered isn't number recorded in cell. =?Utf-8?B?QnViYmFHZWU=?= Microsoft Excel Misc 4 11th Sep 2007 09:38 PM
cell that only a certain number may be entered =?Utf-8?B?amJhaWxleQ==?= Microsoft Excel Worksheet Functions 7 24th Aug 2006 11:09 PM
Display certain part of record when number is entered =?Utf-8?B?S2lydDg0?= Microsoft Access 3 22nd Aug 2006 04:04 AM
Number entered into cell is dividide by 100. Not fixed by Cell For =?Utf-8?B?R29sZGFicmF1bg==?= Microsoft Excel Programming 2 22nd Dec 2004 05:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 PM.