Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default conditional calculating

hello,

i have 2 calcualte the diffrence from 2 rows and a constant

example
b1-a1 -TIME(8;30;0)

example
08:00 17:00 - 00:30 ok
- -08:30 Problem!!!!! - i did not want to calcualte
dif in this case
08:00 12:00 - -04:30 ok

thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default conditional calculating

Try this:

=If(or(a1=0,b1=0),"",B1-A1-time(8,30,0))

"Xavier" wrote:

hello,

i have 2 calcualte the diffrence from 2 rows and a constant

example
b1-a1 -TIME(8;30;0)

example
08:00 17:00 - 00:30 ok
- -08:30 Problem!!!!! - i did not want to calcualte
dif in this case
08:00 12:00 - -04:30 ok

thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default conditional calculating

it works .. , thanks for your help


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
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
Calculating Conditional Standard Deviation? Harimau Excel Worksheet Functions 5 June 27th 07 01:40 PM
calculating averages and using conditional "if" statements achieve Excel Worksheet Functions 2 March 8th 07 09:34 PM
calculating wtd number with conditional array formula nacholibre Excel Discussion (Misc queries) 4 October 20th 06 09:26 PM
CALCULATING WORKSHEETS (INCLUDING AGE CALCULATING SHEETS) FOR DOWNLOADING, GREAT FOR PENSIONS/LIFE INSURANCE CALCULATIONS! RICHARD Excel Programming 0 March 15th 05 01:41 PM


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