Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default "IF" only I could do this?

Trying to check two cells to see if either is blank or has the text "n/a" in
them and not do the calculation. Using the formula so far
=IF(OR(F60="",(E60=""))," ",MOD(F60-E60,1)). I am working with time
formated cells 00:00 determining time between events. If I add to the
formula i.e. ,(F60="n/a" Excel says there is an error. TIA


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default "IF" only I could do this?

Maybe you could just check for numbers (including times & dates) in both E60 and
F60:

=if(count(f60:e60)<2,"",mod(f60-e60,1))



Meebers wrote:

Trying to check two cells to see if either is blank or has the text "n/a" in
them and not do the calculation. Using the formula so far
=IF(OR(F60="",(E60=""))," ",MOD(F60-E60,1)). I am working with time
formated cells 00:00 determining time between events. If I add to the
formula i.e. ,(F60="n/a" Excel says there is an error. TIA


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default "IF" only I could do this?

Try it like this:

=IF(COUNT(E60,F60)=2,MOD(F60-E60,1),"")

--
Biff
Microsoft Excel MVP


"Meebers" wrote in message
...
Trying to check two cells to see if either is blank or has the text "n/a"
in them and not do the calculation. Using the formula so far
=IF(OR(F60="",(E60=""))," ",MOD(F60-E60,1)). I am working with time
formated cells 00:00 determining time between events. If I add to the
formula i.e. ,(F60="n/a" Excel says there is an error. TIA



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default "IF" only I could do this?

TX to Dave and Biff....both work...continuing to test for exceptions...

"T. Valko" wrote in message
...
Try it like this:

=IF(COUNT(E60,F60)=2,MOD(F60-E60,1),"")

--
Biff
Microsoft Excel MVP


"Meebers" wrote in message
...
Trying to check two cells to see if either is blank or has the text "n/a"
in them and not do the calculation. Using the formula so far
=IF(OR(F60="",(E60=""))," ",MOD(F60-E60,1)). I am working with time
formated cells 00:00 determining time between events. If I add to the
formula i.e. ,(F60="n/a" Excel says there is an error. TIA





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default "IF" only I could do this?

both work...continuing to test for exceptions...

There will be no exceptions! <g

Thanks for the feedback!


--
Biff
Microsoft Excel MVP


"Meebers" wrote in message
...
TX to Dave and Biff....both work...continuing to test for exceptions...

"T. Valko" wrote in message
...
Try it like this:

=IF(COUNT(E60,F60)=2,MOD(F60-E60,1),"")

--
Biff
Microsoft Excel MVP


"Meebers" wrote in message
...
Trying to check two cells to see if either is blank or has the text
"n/a" in them and not do the calculation. Using the formula so far
=IF(OR(F60="",(E60=""))," ",MOD(F60-E60,1)). I am working with time
formated cells 00:00 determining time between events. If I add to the
formula i.e. ,(F60="n/a" Excel says there is an error. TIA









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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 09:31 PM.

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"