Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TSK TSK is offline
external usenet poster
 
Posts: 21
Default How to set minus value to 0

How to focus the value to zero after minus from 2 cells otherwise show the
actual value different?

A1 - 100 / B1 - 50


If B1 - A1 is not <= 0 show the value different and if B1 - A1 is <=0 then
reflect the number as 0
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default How to set minus value to 0

=if((b1-a1)<=0,0,value)
Best wishes
Sreedhar

"TSK" wrote:

How to focus the value to zero after minus from 2 cells otherwise show the
actual value different?

A1 - 100 / B1 - 50


If B1 - A1 is not <= 0 show the value different and if B1 - A1 is <=0 then
reflect the number as 0

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default How to set minus value to 0

Hi

=(A1=B1)*(A1-100)/(B1/50)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"TSK" wrote in message
...
How to focus the value to zero after minus from 2 cells otherwise show the
actual value different?

A1 - 100 / B1 - 50


If B1 - A1 is not <= 0 show the value different and if B1 - A1 is <=0 then
reflect the number as 0



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default How to set minus value to 0

=MAX(A1-B1,0)


"TSK" wrote in message
...
How to focus the value to zero after minus from 2 cells otherwise show the
actual value different?

A1 - 100 / B1 - 50


If B1 - A1 is not <= 0 show the value different and if B1 - A1 is <=0 then
reflect the number as 0



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TSK TSK is offline
external usenet poster
 
Posts: 21
Default How to set minus value to 0

Thank you for the sharing but I still encounter some problem cos I am using
it for date cal. and balance of months.

Perhaps you can helped better by looking into my excel sheet, I need the
cell - D1 to be reflected as zero when it is negative and excel to recongize
it as number.

Question 1

A1 - 01 Mar 2001 (Start Date)
B1 - 01 Mar 2006 (End Date)
C1 - 31 May 2008 (Audit Date)
D1 - I had this formula in cell D1: (YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1)


"yshridhar" wrote:

=if((b1-a1)<=0,0,value)
Best wishes
Sreedhar

"TSK" wrote:

How to focus the value to zero after minus from 2 cells otherwise show the
actual value different?

A1 - 100 / B1 - 50


If B1 - A1 is not <= 0 show the value different and if B1 - A1 is <=0 then
reflect the number as 0



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default How to set minus value to 0

Hi

=IF(C1D1,0,DATEDIF(B1,C1,"m"))



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"TSK" wrote in message
...
Thank you for the sharing but I still encounter some problem cos I am
using
it for date cal. and balance of months.

Perhaps you can helped better by looking into my excel sheet, I need the
cell - D1 to be reflected as zero when it is negative and excel to
recongize
it as number.

Question 1

A1 - 01 Mar 2001 (Start Date)
B1 - 01 Mar 2006 (End Date)
C1 - 31 May 2008 (Audit Date)
D1 - I had this formula in cell D1:
(YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1)



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TSK TSK is offline
external usenet poster
 
Posts: 21
Default How to set minus value to 0

Hi Arvi,

Sorry, I think my explaination is still not clear.

Cell D is where I want the result to appear.

Appearance, the formula in cell D I insert
(YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1) to calculate the month different.
I do not have any problem if it is positive but I am facing some calculation
problem when it is negative therefore I would liked excel to automatically
change the negative number to zero and recongize it as number zero too.

Base on the example quoted, the result should be -38 but I would liked the
-38 to change to zero in value. Hoewever, excel should also reflect the
actual different in number when the result is not negative

Example

B1 - 01 Mar 2009
C1 - 01 May 2008
D1 - (YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1) = 10


Thank You


"Arvi Laanemets" wrote:

Hi

=IF(C1D1,0,DATEDIF(B1,C1,"m"))



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"TSK" wrote in message
...
Thank you for the sharing but I still encounter some problem cos I am
using
it for date cal. and balance of months.

Perhaps you can helped better by looking into my excel sheet, I need the
cell - D1 to be reflected as zero when it is negative and excel to
recongize
it as number.

Question 1

A1 - 01 Mar 2001 (Start Date)
B1 - 01 Mar 2006 (End Date)
C1 - 31 May 2008 (Audit Date)
D1 - I had this formula in cell D1:
(YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1)




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How to set minus value to 0

You've got an answer in your other thread. Please stick to one thread
instead of splitting the discussion and causing confusion.
--
David Biddulph

"TSK" wrote in message
...
Hi Arvi,

Sorry, I think my explaination is still not clear.

Cell D is where I want the result to appear.

Appearance, the formula in cell D I insert
(YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1) to calculate the month
different.
I do not have any problem if it is positive but I am facing some
calculation
problem when it is negative therefore I would liked excel to automatically
change the negative number to zero and recongize it as number zero too.

Base on the example quoted, the result should be -38 but I would liked the
-38 to change to zero in value. Hoewever, excel should also reflect the
actual different in number when the result is not negative

Example

B1 - 01 Mar 2009
C1 - 01 May 2008
D1 - (YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1) = 10


Thank You


"Arvi Laanemets" wrote:

Hi

=IF(C1D1,0,DATEDIF(B1,C1,"m"))



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"TSK" wrote in message
...
Thank you for the sharing but I still encounter some problem cos I am
using
it for date cal. and balance of months.

Perhaps you can helped better by looking into my excel sheet, I need
the
cell - D1 to be reflected as zero when it is negative and excel to
recongize
it as number.

Question 1

A1 - 01 Mar 2001 (Start Date)
B1 - 01 Mar 2006 (End Date)
C1 - 31 May 2008 (Audit Date)
D1 - I had this formula in cell D1:
(YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1)






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TSK TSK is offline
external usenet poster
 
Posts: 21
Default How to set minus value to 0

Hi David,

Sorry for the confusion cause as this is my time using online help so I am
not so sured how it link to other threads. Noted your advise and sharing.
Thank you

"David Biddulph" wrote:

You've got an answer in your other thread. Please stick to one thread
instead of splitting the discussion and causing confusion.
--
David Biddulph

"TSK" wrote in message
...
Hi Arvi,

Sorry, I think my explaination is still not clear.

Cell D is where I want the result to appear.

Appearance, the formula in cell D I insert
(YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1) to calculate the month
different.
I do not have any problem if it is positive but I am facing some
calculation
problem when it is negative therefore I would liked excel to automatically
change the negative number to zero and recongize it as number zero too.

Base on the example quoted, the result should be -38 but I would liked the
-38 to change to zero in value. Hoewever, excel should also reflect the
actual different in number when the result is not negative

Example

B1 - 01 Mar 2009
C1 - 01 May 2008
D1 - (YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1) = 10


Thank You


"Arvi Laanemets" wrote:

Hi

=IF(C1D1,0,DATEDIF(B1,C1,"m"))



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"TSK" wrote in message
...
Thank you for the sharing but I still encounter some problem cos I am
using
it for date cal. and balance of months.

Perhaps you can helped better by looking into my excel sheet, I need
the
cell - D1 to be reflected as zero when it is negative and excel to
recongize
it as number.

Question 1

A1 - 01 Mar 2001 (Start Date)
B1 - 01 Mar 2006 (End Date)
C1 - 31 May 2008 (Audit Date)
D1 - I had this formula in cell D1:
(YEAR(B1)-YEAR(C1))*12+MONTH(B1)-MONTH(C1)







  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default How to set minus value to 0

Replace the formula in D1 with new one!
Btw, there was a typo in my formula - the right one for D1 is
=IF(C1B1,0,DATEDIF(B1,C1,"m")

Datedif function with parameter "m" returns the difference between 2 dates
in full months.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


"TSK" wrote in message
...
Hi Arvi,

Sorry, I think my explaination is still not clear.

Cell D is where I want the result to appear.



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
plus and minus ekkeindoha Excel Worksheet Functions 1 August 29th 07 09:07 AM
Plus or minus help Mark Excel Discussion (Misc queries) 12 July 26th 07 10:30 PM
Minus Unease Excel Discussion (Misc queries) 1 June 19th 07 08:34 AM
CHANGE TRAILING MINUS TO BRACKETS OR PRECEEDING MINUS Socal Analyst looking for help Excel Discussion (Misc queries) 2 May 12th 06 07:17 PM
Value Minus Value = ??? Emzicle Excel Discussion (Misc queries) 9 August 23rd 05 08:22 PM


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