How to subtract minutes from two columns

Hi EE

Can someone help me figure out how to get the minutes on to a column ?
For instance , the first example I need the Total Minutes to show 15

Actual Start Date+      Actual End Date+  Total Minutes
10/16/2015 8:05      10/16/2015 8:20
10/14/2015 10:45      10/14/2015 11:28
10/14/2015 11:22      10/14/2015 12:01
10/14/2015 14:15      10/14/2015 14:58
10/20/2015 11:30      10/20/2015 12:58
10/16/2015 12:20      10/16/2015 12:53
LVL 2
MilesLoganAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Hi,

pls try

=MINUTE(B1-A1)

Open in new window

or

=B1-A1

Open in new window

with the format [m]

Regards
0
MagaduCommented:
You can try
 =(B2-A2) *1440 

Open in new window


In this case if difference is  1 hour 15 min you will get  75 (min)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
footechCommented:
PowerShell option for dealing with it as a .CSV.
Import-CSV C:\temp\ee1.csv | ForEach {$_."Total Minutes" = ([datetime]$_."Actual End Date+" - [datetime]$_."Actual Start Date+").totalminutes; $_}

Open in new window


Output
Actual Start Date+ Actual End Date+ Total Minutes
------------------ ---------------- -------------
10/16/2015 8:05    10/16/2015 8:20             15
10/14/2015 10:45   10/14/2015 11:28            43
10/14/2015 11:22   10/14/2015 12:01            39
10/14/2015 14:15   10/14/2015 14:58            43
10/20/2015 11:30   10/20/2015 12:58            88
10/16/2015 12:20   10/16/2015 12:53            33

Open in new window

0
David Johnson, CD, MVPOwnerCommented:
With Bells and Whistles
  <#
 .Synopsis
    You input the filename of a CSv, that has the start and end date
     and output the number of minutes used
 .DESCRIPTION
    
 .EXAMPLE
    Get-Minutes
 .EXAMPLE
    Get-Minutes -source c:\example.csv
 
 .OUTPUTS
 To Screen
  #>
 function Get-Minutes
 {
     [CmdletBinding(DefaultParameterSetName='Parameter Set 1', 
                   SupportsShouldProcess=$true, 
                   PositionalBinding=$false,
                   HelpUri = 'http://www.microsoft.com/',
                   ConfirmImpact='Medium')]
     [Alias()]
     [OutputType([String])]
     Param
     (
         # Param1 help description
         [Parameter(Mandatory=$true, 
                    ValueFromPipeline=$true,
                    ValueFromPipelineByPropertyName=$true, 
                    ValueFromRemainingArguments=$false, 
                    Position=0,
                    ParameterSetName='Parameter Set 1')]
         [ValidateNotNull()]
         [ValidateNotNullOrEmpty()]
        $source
     )
 
     Begin
     {
     }
     Process
     {
        if (!(Test-Path $source)){
        Write-Output ($source +' not found')
        }
    else {
    $times = Import-CSV $source
    if (($times."Actual End Date+" -eq $null) -or ($times."Actual Start Date+" -eq $null)){
    Write-Output ('CSV is in invalid format')
    break
    }

    ForEach ($time in $times){
        $time."Total Minutes" = ([datetime]$time."Actual End Date+" - [datetime]$time."Actual Start Date+").totalminutes
        $time
        }
        }
    }
     End
     {
     }
 }

Open in new window

0
MilesLoganAuthor Commented:
Wow ! four great assist on this .. thank you all so much ..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.