Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old April 9th 07, 03:58 AM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2008
Posts: 15
Default Strings to Numbers

I have an Excel spreadsheet that I import into Access. On the Access side I
have 2 fields, “Duration” it looks like this 0:13:25, “Duration1”, that I
want to look like this, 13:25 where I can do some math. Is this possible?

Thanks


  #2   Report Post  
Old April 9th 07, 05:42 AM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 903
Default Strings to Numbers

In order for someone to answer the question you
have to indicate what the number represents as
seen. For lack of such information I will assume
for now that it represents hours:minutes:seconds
and all you need to do is format at [mm]:ss
to show minutes and seconds where minutes does
not overflow into hours.

If the field is text and you need to convert it to a
number then you can use the TrimALL macro as
seen at
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"open a adobe file from a command button" osoft.com wrote in message
news
I have an Excel spreadsheet that I import into Access. On the Access side I
have 2 fields, "Duration" it looks like this 0:13:25, "Duration1", that I
want to look like this, 13:25 where I can do some math. Is this possible?

Thanks





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
Help With Searching For Strings In Part Numbers tb Excel Worksheet Functions 3 June 21st 11 04:22 PM
Combine strings and numbers Alain Dekker Excel Discussion (Misc queries) 6 February 21st 10 09:51 PM
Extracting numbers from alphanumeric strings Poonam Excel Worksheet Functions 5 April 5th 08 01:27 AM
Strings and numbers in cells lespal Excel Discussion (Misc queries) 1 September 5th 07 05:16 PM
Extract numbers from strings Stan Altshuller Excel Worksheet Functions 6 February 17th 05 10:33 PM


All times are GMT +1. The time now is 11:37 AM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017