+ Reply to Thread
Results 1 to 2 of 2

Newbie question about intervals and results

  1. #1
    Steve
    Guest

    Newbie question about intervals and results

    Hey, I'm having these (hopefully simple problems) with writing in page numbers:

    1. I want to write ex. "7-19" in a cell -
    Then in another cell I want excel to give the "result" of the interval of,
    here 12.

    2. Now, if that's possible, I also want to ask this:
    In one cell i want to write 2 or more different interval, ex
    "7-19, 81-90".

    Can I make excel understand what I'm writing somehow? And get the result of
    these intervals in another cell, here 21 (12+9)

    Any help will be extremely appreciated - thanks in advance, steve.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    your first question is easily done thusly:

    =RIGHT(A1,LEN(A1)-FIND("-",A1))-MID(A1,1,FIND("-",A1)-1)

    Where A1 contains "7-19" the result will be 12 (say in cell B2)

    You can repeat this sequence on multiple cells (in column A)and then sum the cells with the results in column B.

    I would not try your second option. Rather, place each component in adjoining columns and create formulas to analyze each.

    HTH
    Bruce
    The older I get, the better I used to be.
    USA

+ 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