Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Excluding Negative Numbers

Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default Excluding Negative Numbers

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42*pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas. *

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. *As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas. *

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Excluding Negative Numbers

It works as long as I have two dates, to subtract, but sometimes I am missing
a date. Do you know if it's possible to combine this formula
=IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1) with your formula so that
if dates are missing, the cell this formula is in will go blank? or if the
number that would appear in the cell is negative it will go blank?

"muddan madhu" wrote:

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42 pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Excluding Negative Numbers

This assume that if K15 and L15 is not = 2 or that they are negative number,
the formula will return a blank.

=IF(OR(COUNT(K15:L15)<2,(COUNT(K15:L15)<0)),"",NE TWORKDAYS(K15,L15)-1)

Is this what you want?
HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis


"Workbook" wrote:

It works as long as I have two dates, to subtract, but sometimes I am missing
a date. Do you know if it's possible to combine this formula
=IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1) with your formula so that
if dates are missing, the cell this formula is in will go blank? or if the
number that would appear in the cell is negative it will go blank?

"muddan madhu" wrote:

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42 pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Excluding Negative Numbers

Perhaps I made a mistake, but it's not returning a blank.

"xlmate" wrote:

This assume that if K15 and L15 is not = 2 or that they are negative number,
the formula will return a blank.

=IF(OR(COUNT(K15:L15)<2,(COUNT(K15:L15)<0)),"",NE TWORKDAYS(K15,L15)-1)

Is this what you want?
HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis


"Workbook" wrote:

It works as long as I have two dates, to subtract, but sometimes I am missing
a date. Do you know if it's possible to combine this formula
=IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1) with your formula so that
if dates are missing, the cell this formula is in will go blank? or if the
number that would appear in the cell is negative it will go blank?

"muddan madhu" wrote:

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42 pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Excluding Negative Numbers

Maybe this

=IF(OR(COUNT(K15:L15)<2,L15<K15),"",NETWORKDAYS(K 15,L15)-1)

Mike

"Workbook" wrote:

Perhaps I made a mistake, but it's not returning a blank.

"xlmate" wrote:

This assume that if K15 and L15 is not = 2 or that they are negative number,
the formula will return a blank.

=IF(OR(COUNT(K15:L15)<2,(COUNT(K15:L15)<0)),"",NE TWORKDAYS(K15,L15)-1)

Is this what you want?
HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis


"Workbook" wrote:

It works as long as I have two dates, to subtract, but sometimes I am missing
a date. Do you know if it's possible to combine this formula
=IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1) with your formula so that
if dates are missing, the cell this formula is in will go blank? or if the
number that would appear in the cell is negative it will go blank?

"muddan madhu" wrote:

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42 pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Excluding Negative Numbers

Hi,

apology,

this formula will return blank based on your additional requirement
over your existing formula

=IF(OR(COUNT(K15:L15)<2,L15-K15<0),"",NETWORKDAYS(K15,L15)-1)

HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis





"Workbook" wrote:

Perhaps I made a mistake, but it's not returning a blank.

"xlmate" wrote:

This assume that if K15 and L15 is not = 2 or that they are negative number,
the formula will return a blank.

=IF(OR(COUNT(K15:L15)<2,(COUNT(K15:L15)<0)),"",NE TWORKDAYS(K15,L15)-1)

Is this what you want?
HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis


"Workbook" wrote:

It works as long as I have two dates, to subtract, but sometimes I am missing
a date. Do you know if it's possible to combine this formula
=IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1) with your formula so that
if dates are missing, the cell this formula is in will go blank? or if the
number that would appear in the cell is negative it will go blank?

"muddan madhu" wrote:

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42 pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Excluding Negative Numbers

Mike, you're the man. It works! I have been trying so hard to get this.
Thank you!

"xlmate" wrote:

Hi,

apology,

this formula will return blank based on your additional requirement
over your existing formula

=IF(OR(COUNT(K15:L15)<2,L15-K15<0),"",NETWORKDAYS(K15,L15)-1)

HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis





"Workbook" wrote:

Perhaps I made a mistake, but it's not returning a blank.

"xlmate" wrote:

This assume that if K15 and L15 is not = 2 or that they are negative number,
the formula will return a blank.

=IF(OR(COUNT(K15:L15)<2,(COUNT(K15:L15)<0)),"",NE TWORKDAYS(K15,L15)-1)

Is this what you want?
HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis


"Workbook" wrote:

It works as long as I have two dates, to subtract, but sometimes I am missing
a date. Do you know if it's possible to combine this formula
=IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1) with your formula so that
if dates are missing, the cell this formula is in will go blank? or if the
number that would appear in the cell is negative it will go blank?

"muddan madhu" wrote:

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42 pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Excluding Negative Numbers

Thanks for your feedback Mike, I appreciate your help!

"Mike H" wrote:

Maybe this

=IF(OR(COUNT(K15:L15)<2,L15<K15),"",NETWORKDAYS(K 15,L15)-1)

Mike

"Workbook" wrote:

Perhaps I made a mistake, but it's not returning a blank.

"xlmate" wrote:

This assume that if K15 and L15 is not = 2 or that they are negative number,
the formula will return a blank.

=IF(OR(COUNT(K15:L15)<2,(COUNT(K15:L15)<0)),"",NE TWORKDAYS(K15,L15)-1)

Is this what you want?
HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis


"Workbook" wrote:

It works as long as I have two dates, to subtract, but sometimes I am missing
a date. Do you know if it's possible to combine this formula
=IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1) with your formula so that
if dates are missing, the cell this formula is in will go blank? or if the
number that would appear in the cell is negative it will go blank?

"muddan madhu" wrote:

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42 pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Excluding Negative Numbers

Sorry Francis, I have been up all night. I was writing messages to you and
Mike at the same time. You were right it works. I cannot thank you enough.

Ed

"xlmate" wrote:

Hi,

apology,

this formula will return blank based on your additional requirement
over your existing formula

=IF(OR(COUNT(K15:L15)<2,L15-K15<0),"",NETWORKDAYS(K15,L15)-1)

HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis





"Workbook" wrote:

Perhaps I made a mistake, but it's not returning a blank.

"xlmate" wrote:

This assume that if K15 and L15 is not = 2 or that they are negative number,
the formula will return a blank.

=IF(OR(COUNT(K15:L15)<2,(COUNT(K15:L15)<0)),"",NE TWORKDAYS(K15,L15)-1)

Is this what you want?
HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis


"Workbook" wrote:

It works as long as I have two dates, to subtract, but sometimes I am missing
a date. Do you know if it's possible to combine this formula
=IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1) with your formula so that
if dates are missing, the cell this formula is in will go blank? or if the
number that would appear in the cell is negative it will go blank?

"muddan madhu" wrote:

may be this

=IF(SIGN(IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L 15)-1))=-1,"",IF
(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L15)-1))

On Feb 4, 12:42 pm, Workbook
wrote:
Thanks mostly to T. Valko and JE McGimpsey I have the following formulas.

1) =IF(COUNT(K15:L15)<2,"",NETWORKDAYS(K15,L715)-1)

2) =IF(N15<"",(N15*24),"")

Both formulas makes the cell which contains the formula blank when data is
missing from one of the two referenced cells. As a result some kind of error
message will not appear and the cell stays blank allowing for accurate
calculations of other formulas.

Do you know how the formulas above could be modified to exclude negative
numbers as well, so that the cells which contain these formulas go blank when
they calculate a negative number?


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
Excluding Repeating Numbers Help!1 James8309 Excel Worksheet Functions 5 August 25th 08 02:18 AM
Set negative numbers to zero. Do not calculate with negative valu Excel Headache Excel Discussion (Misc queries) 4 September 14th 06 08:56 PM
Excluding numbers in a total dj Excel Discussion (Misc queries) 7 July 11th 06 01:51 PM
Averaging excluding min and max numbers n_gineer Excel Worksheet Functions 3 January 12th 06 03:32 PM
retrieve numbers excluding the repeticions pmarques Excel Discussion (Misc queries) 4 September 16th 05 05:28 PM


All times are GMT +1. The time now is 07:49 AM.

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

About Us

"It's about Microsoft Excel"