#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Importing Mins:Secs

I'm getting nicely confused here and would appreciate a little help
please.

For a CD I bought, I had a text file containing details of the
durations of some tracks. It looked like this:
Min Sec
Préambule 02:17
Pierrot 01:58
Arlequin 01:05

I imported it into Excel 2000, where it looked the same.

Adding durations of the first dozen or so tracks gave the correct
answer. For example:

Préambule 02:17
Pierrot 01:58
Arlequin 01:05
Total 05:20

But later totals were clearly wrong. I eventually realised it was
because Excel had assumed, (for reasons I'd be interested to know),
that these were Hours:Mins, instead of Mins:Secs.

So how can I do the following please:

1) Fix this now, after the event. So far, fiddling with changing the
format to Custom mm:ss didn't work.

2) Ensure that future similar imports are correct.

--
Terry, West Sussex, UK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Importing Mins:Secs

What you need to do is divide all the entries you have so far by 60. An
easy way to do this in one go is to enter 60 into a blank cell
somewhere, select that cell and click <copy. Then highlight all the
cells which you want to change (eg B2:B50) and Edit | Paste Special |
Divide (in the Operations area - check this) then OK and <Esc.

You will need to format the cells using Custom as [m]:ss

Hope this helps.

Pete

Terry Pinnell wrote:
I'm getting nicely confused here and would appreciate a little help
please.

For a CD I bought, I had a text file containing details of the
durations of some tracks. It looked like this:
Min Sec
Préambule 02:17
Pierrot 01:58
Arlequin 01:05

I imported it into Excel 2000, where it looked the same.

Adding durations of the first dozen or so tracks gave the correct
answer. For example:

Préambule 02:17
Pierrot 01:58
Arlequin 01:05
Total 05:20

But later totals were clearly wrong. I eventually realised it was
because Excel had assumed, (for reasons I'd be interested to know),
that these were Hours:Mins, instead of Mins:Secs.

So how can I do the following please:

1) Fix this now, after the event. So far, fiddling with changing the
format to Custom mm:ss didn't work.

2) Ensure that future similar imports are correct.

--
Terry, West Sussex, UK


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Importing Mins:Secs

"Pete_UK" wrote:

What you need to do is divide all the entries you have so far by 60. An
easy way to do this in one go is to enter 60 into a blank cell
somewhere, select that cell and click <copy. Then highlight all the
cells which you want to change (eg B2:B50) and Edit | Paste Special |
Divide (in the Operations area - check this) then OK and <Esc.

You will need to format the cells using Custom as [m]:ss

Hope this helps.

Pete

Terry Pinnell wrote:
I'm getting nicely confused here and would appreciate a little help
please.

For a CD I bought, I had a text file containing details of the
durations of some tracks. It looked like this:
Min Sec
Préambule 02:17
Pierrot 01:58
Arlequin 01:05

I imported it into Excel 2000, where it looked the same.

Adding durations of the first dozen or so tracks gave the correct
answer. For example:

Préambule 02:17
Pierrot 01:58
Arlequin 01:05
Total 05:20

But later totals were clearly wrong. I eventually realised it was
because Excel had assumed, (for reasons I'd be interested to know),
that these were Hours:Mins, instead of Mins:Secs.

So how can I do the following please:

1) Fix this now, after the event. So far, fiddling with changing the
format to Custom mm:ss didn't work.

2) Ensure that future similar imports are correct.

--
Terry, West Sussex, UK


Thanks. But meanwhile I tried an alternative approach that worked OK.
I realised that Excel was expecting HH:MM:SS, and I'd given it only
XX:YY, which it took as HH:MM. So I first used a simple RegEx in my
text editor, TextPad, to prefix all my data with '00:'. Then all was
well.

--
Terry, West Sussex, UK
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Importing Mins:Secs

I'm glad you got it sorted out - thanks for the feedback.

Pete

Terry Pinnell wrote:
"Pete_UK" wrote:

What you need to do is divide all the entries you have so far by 60. An
easy way to do this in one go is to enter 60 into a blank cell
somewhere, select that cell and click <copy. Then highlight all the
cells which you want to change (eg B2:B50) and Edit | Paste Special |
Divide (in the Operations area - check this) then OK and <Esc.

You will need to format the cells using Custom as [m]:ss

Hope this helps.

Pete

Terry Pinnell wrote:
I'm getting nicely confused here and would appreciate a little help
please.

For a CD I bought, I had a text file containing details of the
durations of some tracks. It looked like this:
Min Sec
Préambule 02:17
Pierrot 01:58
Arlequin 01:05

I imported it into Excel 2000, where it looked the same.

Adding durations of the first dozen or so tracks gave the correct
answer. For example:

Préambule 02:17
Pierrot 01:58
Arlequin 01:05
Total 05:20

But later totals were clearly wrong. I eventually realised it was
because Excel had assumed, (for reasons I'd be interested to know),
that these were Hours:Mins, instead of Mins:Secs.

So how can I do the following please:

1) Fix this now, after the event. So far, fiddling with changing the
format to Custom mm:ss didn't work.

2) Ensure that future similar imports are correct.

--
Terry, West Sussex, UK


Thanks. But meanwhile I tried an alternative approach that worked OK.
I realised that Excel was expecting HH:MM:SS, and I'd given it only
XX:YY, which it took as HH:MM. So I first used a simple RegEx in my
text editor, TextPad, to prefix all my data with '00:'. Then all was
well.

--
Terry, West Sussex, UK


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
Importing Text File Data into Excel where records span several row Razorback76 Excel Discussion (Misc queries) 2 June 25th 06 07:36 AM
Retain Numbers as Text Format When Importing. xardoz Excel Discussion (Misc queries) 2 June 20th 06 06:16 PM
Importing information from 2 workbooks into a 3rd one Susanneec Links and Linking in Excel 2 April 29th 06 01:57 AM
Importing information from 2 workbooks into a 3rd one Susanneec Excel Worksheet Functions 2 April 21st 06 06:27 PM
Importing information from 2 workbooks into a 3rd one Susanneec Excel Discussion (Misc queries) 0 April 20th 06 11:50 PM


All times are GMT +1. The time now is 06:30 AM.

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"