#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
phuser
 
Posts: n/a
Default IF'S Blah

=IF(ISERROR(F16-K16),"",IF(SUM(F16-K160),"",SUM(F16-K16)))

Cells F16 & K16 can either contain a "Null String" ("") or a number created
from another IF statement , from these 2 Cells I need another calculation,
if the error "#Value" is made I want it to be blank, If the number is 0, I
want it to be blank, but if it's a number I want it to appear.

Any help is greatly appreciated


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VBA Noob
 
Posts: n/a
Default IF'S Blah


Hi phuser,

Think you nearly had it. Should be

=IF(ISERROR(F16-K16),"",IF(SUM(F16-K16<=0),"",SUM(F16-K16)))

< = less than. I've added = so it also shows as blank.

Thanks

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=554122

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VBA Noob
 
Posts: n/a
Default IF'S Blah


Hi phuser,

Think you nearly had it. Should be

=IF(ISERROR(F16-K16),"",IF(SUM(F16-K16<=0),"",SUM(F16-K16)))

< = less than. I've added = so it also shows as blank.

Thanks

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=554122

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VBA Noob
 
Posts: n/a
Default IF'S Blah


Hi phuser,

Think you nearly had it. Should be

=IF(ISERROR(F16-K16),"",IF(SUM(F16-K16<=0),"",SUM(F16-K16)))

< = less than. I've added = so it also shows as blank.

Thanks

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=554122

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default IF'S Blah

Nel post
*phuser* ha scritto:

=IF(ISERROR(F16-K16),"",IF(SUM(F16-K160),"",SUM(F16-K16)))

Cells F16 & K16 can either contain a "Null String" ("") or a number
created from another IF statement , from these 2 Cells I need another
calculation, if the error "#Value" is made I want it to be blank, If
the number is 0, I want it to be blank, but if it's a number I want
it to appear.
Any help is greatly appreciated


I don't know I have understood what you mean...

Try with this one:

=IF(and(F16="",K16=""),"",IF((F16-K16)0,"",F16-K16))

--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave
 
Posts: n/a
Default IF'S Blah

Franz

I'm just trying to learn by following this group. You all have been so much
help already. Could you please explain why this formula does not work as a
solution for the the OP's problem

=IF(OR(ISERROR(F16-K16),((F16-K16)<0)),"",F16-K16)

Dave

"Franz Verga" wrote in message
...
Nel post
*phuser* ha scritto:

=IF(ISERROR(F16-K16),"",IF(SUM(F16-K160),"",SUM(F16-K16)))

Cells F16 & K16 can either contain a "Null String" ("") or a number
created from another IF statement , from these 2 Cells I need another
calculation, if the error "#Value" is made I want it to be blank, If
the number is 0, I want it to be blank, but if it's a number I want
it to appear.
Any help is greatly appreciated


I don't know I have understood what you mean...

Try with this one:

=IF(and(F16="",K16=""),"",IF((F16-K16)0,"",F16-K16))

--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default IF'S Blah

Nel post
*Dave* ha scritto:

Franz

I'm just trying to learn by following this group. You all have been
so much help already. Could you please explain why this formula does
not work as a solution for the the OP's problem

=IF(OR(ISERROR(F16-K16),((F16-K16)<0)),"",F16-K16)

Dave


I think because he wants to see a null string ("") also if (F16-K16)0, so
you could modify your formula in this way:

=IF(OR(ISERROR(F16-K16),((F16-K16)0)),"",F16-K16)


--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
phuser
 
Posts: n/a
Default IF'S Blah

Well Guys, I so much appreciate all the help, but something is missing when
I try, VBA Noob's only worked if the both cells were blank or both contained
numbers but if 1 of the cells contained a whole number and 1 was blank it
returned a blank cell. Need it to be like 1-0=1 right, not 1-0=0
Franz formula returned a #Value, when both cells were blank as did David's

"Dave" wrote in message
...
Franz

I'm just trying to learn by following this group. You all have been so
much help already. Could you please explain why this formula does not
work as a solution for the the OP's problem

=IF(OR(ISERROR(F16-K16),((F16-K16)<0)),"",F16-K16)

Dave

"Franz Verga" wrote in message
...
Nel post
*phuser* ha scritto:

=IF(ISERROR(F16-K16),"",IF(SUM(F16-K160),"",SUM(F16-K16)))

Cells F16 & K16 can either contain a "Null String" ("") or a number
created from another IF statement , from these 2 Cells I need another
calculation, if the error "#Value" is made I want it to be blank, If
the number is 0, I want it to be blank, but if it's a number I want
it to appear.
Any help is greatly appreciated


I don't know I have understood what you mean...

Try with this one:

=IF(and(F16="",K16=""),"",IF((F16-K16)0,"",F16-K16))

--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy





  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave
 
Posts: n/a
Default IF'S Blah

Franz

You are correct I used less than 0 instead of greater than 0 but if text is
entered in either cell F16 or cell K16 it should generate an error an
therefore display a null string but it does not it displays #value. What am
I missing?

Dave

"Franz Verga" wrote in message
...
Nel post
*Dave* ha scritto:

Franz

I'm just trying to learn by following this group. You all have been
so much help already. Could you please explain why this formula does
not work as a solution for the the OP's problem

=IF(OR(ISERROR(F16-K16),((F16-K16)<0)),"",F16-K16)

Dave


I think because he wants to see a null string ("") also if (F16-K16)0,
so you could modify your formula in this way:

=IF(OR(ISERROR(F16-K16),((F16-K16)0)),"",F16-K16)


--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy



  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default IF'S Blah

Nel post
*phuser* ha scritto:

Well Guys, I so much appreciate all the help, but something is
missing when I try, VBA Noob's only worked if the both cells were
blank or both contained numbers but if 1 of the cells contained a
whole number and 1 was blank it returned a blank cell. Need it to be
like 1-0=1 right, not 1-0=0 Franz formula returned a #Value, when both
cells were blank as did
David's


Maybe it should be better if could explain again, in a clearer way, what are
the expected results and the conditions...

--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy




  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
phuser
 
Posts: n/a
Default IF'S Blah

Well I may have sabatoged this thread from the beginning I wanted less than
not greater than, and have put that in
but the results are the same. VBA Noob got it right, it's like he knew what
I wanted before I did ;-)


Ok I'll try to explain it best I can
F7 = IF('062306'!L200,('062306'!L20),"") returns a value of (e.g. 6) or ""
K7 = IF(SUM(I20/D19)0,SUM(I20/D19),"") also returns value of (whole number)
or ""

G7 contains the calculation of those 2 cells, if 1 of the values in F7 or K7
is blank the value will be returned #Value,
so Im trying to eliminate that error by putting in the ISERROR statement,
but I also want it to be blank if less than 0 amount is calculated, in the
end, all I want to see in G7 is a whole number, anything else should return
a blank cell.

"phuser" wrote in message
...
=IF(ISERROR(F16-K16),"",IF(SUM(F16-K160),"",SUM(F16-K16)))

Cells F16 & K16 can either contain a "Null String" ("") or a number
created from another IF statement , from these 2 Cells I need another
calculation, if the error "#Value" is made I want it to be blank, If the
number is 0, I want it to be blank, but if it's a number I want it to
appear.

Any help is greatly appreciated



  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default IF'S Blah

Nel post
*phuser* ha scritto:

Well I may have sabatoged this thread from the beginning I wanted
less than not greater than, and have put that in
but the results are the same. VBA Noob got it right, it's like he
knew what I wanted before I did ;-)


Ok I'll try to explain it best I can
F7 = IF('062306'!L200,('062306'!L20),"") returns a value of (e.g.
6) or "" K7 = IF(SUM(I20/D19)0,SUM(I20/D19),"") also returns value
of (whole number) or ""

G7 contains the calculation of those 2 cells, if 1 of the values in
F7 or K7 is blank the value will be returned #Value,
so Im trying to eliminate that error by putting in the ISERROR
statement, but I also want it to be blank if less than 0 amount is
calculated, in the end, all I want to see in G7 is a whole number,
anything else should return a blank cell.



So now, maybe (maybe) I have understood...

Try this one, fitting the ranges:

=IF(OR(F16="",K16=""),"",IF((F16-K16)<=0,"",F16-K16))

or also

=IF(OR(OR(F16="",K16=""),(F16-K16)<=0),"",F16-K16)

--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy


  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
phuser
 
Posts: n/a
Default IF'S Blah

Something just isnt adding up right, if there is a number in F7 and K7 is
blank, G7 still returns a blank cell, I dont get it.

"Franz Verga" wrote in message
...
Nel post
*phuser* ha scritto:

Well I may have sabatoged this thread from the beginning I wanted
less than not greater than, and have put that in
but the results are the same. VBA Noob got it right, it's like he
knew what I wanted before I did ;-)


Ok I'll try to explain it best I can
F7 = IF('062306'!L200,('062306'!L20),"") returns a value of (e.g.
6) or "" K7 = IF(SUM(I20/D19)0,SUM(I20/D19),"") also returns value
of (whole number) or ""

G7 contains the calculation of those 2 cells, if 1 of the values in
F7 or K7 is blank the value will be returned #Value,
so Im trying to eliminate that error by putting in the ISERROR
statement, but I also want it to be blank if less than 0 amount is
calculated, in the end, all I want to see in G7 is a whole number,
anything else should return a blank cell.



So now, maybe (maybe) I have understood...

Try this one, fitting the ranges:

=IF(OR(F16="",K16=""),"",IF((F16-K16)<=0,"",F16-K16))

or also

=IF(OR(OR(F16="",K16=""),(F16-K16)<=0),"",F16-K16)

--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy



  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default IF'S Blah

Nel post
*phuser* ha scritto:


[cut]

G7 contains the calculation of those 2 cells, if 1 of the values in
F7 or K7 is blank the value will be returned #Value,
so Im trying to eliminate that error by putting in the ISERROR
statement, but I also want it to be blank if less than 0 amount is
calculated, in the end, all I want to see in G7 is a whole number,
anything else should return a blank cell.



So now, maybe (maybe) I have understood...

Try this one, fitting the ranges:

=IF(OR(F16="",K16=""),"",IF((F16-K16)<=0,"",F16-K16))

or also

=IF(OR(OR(F16="",K16=""),(F16-K16)<=0),"",F16-K16)


Something just isnt adding up right, if there is a number in F7 and
K7 is blank, G7 still returns a blank cell, I dont get it.


Let me understand...

In the above formulas, F16 stands for your real F7 and K16 for your real K7?

Which one of the two formulas did you try?

I wrote the formulas directly in OE, without trying, but now I tried and the
first, i.e.:

=IF(OR(F16="",K16=""),"",IF((F16-K16)<=0,"",F16-K16))

works for me...

Maybe you can post an example file on www.savefile.com


--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy


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 insert/delete rows to be x apart Mr_Flibble Excel Discussion (Misc queries) 5 February 17th 06 04:04 AM
Rankif? Lee Harris Excel Worksheet Functions 4 October 19th 05 11:16 PM
How to split up bulk text?????? DJS1234 Excel Discussion (Misc queries) 5 October 13th 05 05:17 PM
Using the IF function fluci Excel Discussion (Misc queries) 2 August 4th 05 05:09 PM
nowrap with text row philosophology Excel Discussion (Misc queries) 0 May 27th 05 08:57 PM


All times are GMT +1. The time now is 03:48 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"