LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Logical value in time formula?

Using a text function is OK if you just want to display it, but not
necesarily if you want to do calculations.

Some calculations, such as adding or multiplying, will translate the text to
a number, but functions such as SUM and AVERAGE will ignore text.
--
David Biddulph

"Ms-Exl-Learner" wrote in message
...
If you want to get the difference between two times then use text
function.

Assume that C5 is the Start Time and C10 is the End Time.
C5 Cell
6:55:22 AM

C10 Cell
5:36:08 PM

=TEXT(C10-C5,"HH:MM:SS")

Myself is a learner so I hope that the experts will guide you about the
explanation you have asked for.

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"geebee2k" wrote:

This is a simple question compared to some others here! :-)

I have come across a spreadsheet which does various calculations on time
values. The formula in question is:
=C10+(C10<C5)-C5

...where C5 and C10 are both time values (e.g. 9:30 PM). The formula
seeks
to determine the elapsed time between C5 and C10. Obviously, the
expression
(C10<C5) is a logical expression, and evaluates to such if it is entered
into
a test cell (it evaluates to "TRUE" in every case I tested.) The formula
calculates properly if this term is included, and does NOT calculate
properly
if it is NOT included.

I've never used logical expressions in an arithmetic formula. Can anyone
explain why the logical term is necessary, and how it works? I'm just not
comfortable passing the spreadsheet along without understanding how
everything works!

Thanks,
Geebee





 
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
Logical formula from a list charlie Excel Worksheet Functions 4 November 4th 08 05:30 PM
logical formula mike Excel Worksheet Functions 2 October 28th 08 06:21 AM
Help with Logical Formula talltom Excel Worksheet Functions 4 November 5th 07 07:58 PM
A Complicated Logical Formula Yuanhang Excel Discussion (Misc queries) 8 July 1st 07 08:07 PM
Need help about logical formula vlook fomula Excel Worksheet Functions 3 January 24th 07 01:21 PM


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