+ Reply to Thread
Results 1 to 4 of 4

data format and reference question

  1. #1
    Registered User
    Join Date
    02-26-2008
    Posts
    2

    data format and reference question

    Hi all,

    I am an electronic hard/software developer and am having some trouble with data analyzation in Excel.

    I have a file in ASCII Format that includes some measurement results. The columns are seperated with [tab] and the first four/five lines are filled with comments, marked with a preceding '#'.

    The file is imported just right, all values seem to be recognized and the resulting graphs look pretty.

    1st Problem:

    The first column includes the relative time when the measurement was done. Unfortunately this is in format hhh:mm:ss. For some reason this data format is not selectable in Excel and so I tried to define it with [h]:mm:ss . Unfortunately the data cells in my file look like this: "000:26:00". Excel does not recognize this when I set the data format to [h]:mm:ss, but it would recognize "0:26:00". So I guess the preceding '0's produce the trouble.
    Is there some workaround about this problem? I really do not want to write a seperate program in Python (because that's what I know) to remove the preceding zeros... I want Excel to recognize this format!


    2nd Problem:

    I need to define manually specific data ranges. Let's say in A4:A121 it should be possible to define/calculate the '4' and '121'. So what I'd need is something like A[$B$2]:A[$B$3]. So the starting point ('4') of the sequence can be given by typing it into the B2. Unfortunately I failed to find a feature like that in Excel... Any ideas?

    Best regards,
    Matt

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Problem 1:

    You will have to create a temporary column that converts the time to Excel recognized time: Use formula: =MID(A1,2,255)+0 copied down, where A1 houses first time to convert.... then you can copy >> paste special >> values over the original column and delete the temporary column

    Problem 2:

    Use INDIRECT: e.g. =INDIRECT("A"&B2&":A"&B3)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-26-2008
    Posts
    2

    Cool

    cool, thx! doesn't look like as if there's an easier/ automatic way to solve problem 1 eh?

    regards,
    Matt

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You could:
    • find and replace 000: with 00:
    • select a single empty cell and copy it
    • select all the cells with the time values, and do Edit > Paste Special, Add.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1