Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Excel97 How do I enter a formula help please

Hello,

Could someone please advise om how to add the following formula into my
spreadsheet which NickHK kindly gave me:

Here is my original query:

In my workbook in column F I have a start date in dd mmm yyyy hh:mm format.

In my workbook in column G I have a start date in dd mmm yyyy hh:mm format.

In my workbook in column H I have a start date in dd mmm yyyy hh:mm format.

I need the difference between columns G and F to be calculated in column H.

For example:

In column F there is a date/time of 15 Jan 2005 07:30 and in column G
there is a date/time of 22 Jan 2005 14:15

So in column H, the difference should be 7 days and 6 hours and 15 minutes.


Here is NickHK's solution:

If H1=F1-G1
Then I1=Day(H1) & " days " & Hour(H1) & " hours " & Minute(H1) & " mintues"

I do not know how to enter in the formula, so any help here would be greatly
appreciated,

Kind regards,

Chris.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default Excel97 How do I enter a formula help please

Chris,

Try this:
In H1 enter: =G1-F1

then in I1 (you may have to insert a column to make room for this) enter
=DAY(H1) & " days " & HOUR(H1) & " hours " & MINUTE(H1) & " minutes"

You can then hide col G if you wish, since your desired info will be in
column I now.

"Chris Hankin" wrote:

Hello,

Could someone please advise om how to add the following formula into my
spreadsheet which NickHK kindly gave me:

Here is my original query:

In my workbook in column F I have a start date in dd mmm yyyy hh:mm format.

In my workbook in column G I have a start date in dd mmm yyyy hh:mm format.

In my workbook in column H I have a start date in dd mmm yyyy hh:mm format.

I need the difference between columns G and F to be calculated in column H.

For example:

In column F there is a date/time of 15 Jan 2005 07:30 and in column G
there is a date/time of 22 Jan 2005 14:15

So in column H, the difference should be 7 days and 6 hours and 15 minutes.


Here is NickHK's solution:

If H1=F1-G1
Then I1=Day(H1) & " days " & Hour(H1) & " hours " & Minute(H1) & " mintues"

I do not know how to enter in the formula, so any help here would be greatly
appreciated,

Kind regards,

Chris.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel97 How do I enter a formula help please

Thankyou Gocush - your help is much appreciated.

Cheers,

Chris.

Live Long and Prosper :)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
When I enter a formula, Excel shows the formula not the results Pat Adams Excel Worksheet Functions 5 April 4th 23 11:18 AM
What does hitting Ctrl + Shift + Enter to enter a formula do??? Help a n00b out. qwopzxnm Excel Worksheet Functions 2 October 20th 05 09:06 PM
Cannot enter formula in a cell after removing a circular formula Big Corona Excel Worksheet Functions 0 April 5th 05 06:07 PM
Problem with Excel97/Chart/Formula Tobias Schittkowski Excel Programming 1 November 9th 04 06:45 PM
formula from Excel97 doesn't work in Excel2003,any ideas why? nic Excel Worksheet Functions 6 November 8th 04 04:40 PM


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