Somehow if you have date in format hh:mm dd/mm/yy and you try to
subtract you may not get accurate results in such a case use the
following formula. Suppose your start time and date is in cell A1 and
end time and date in cell B1 in C1 type
=B1+ (A1>B1) - A1

Since on subtracting dates Excel doesn't like negative values an error
"####" is generated but on use of this formula this problem won't
occur.

On Oct 2, 9:33 pm, "Upendra Singh" <upendrasinghsen...@gmail.com>
wrote:
> Hi Huzaifa,
>
> This is very much possible to subtract dates. Simply subtract as you
> subtract no.s and format the cell as "yy-mm-dd".
> This works fine provided you are subtracting dates and not text written as
> date.
>
> Thanks and Regards,
>
> Upendra Singh
> +91-9910227325
>
> -----Original Message-----
> From: excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com]
>
> On Behalf Of Huzaifa
> Sent: Friday, October 02, 2009 11:19 PM
> To: MS EXCEL AND VBA MACROS
> Subject: $$Excel-Macros$$ Subtract dates
>
> Is it possible to subtract dates in Microsoft Excel and get the result
> in yy-mm-dd format? Please help me.
> Thanks

--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to