+ Reply to Thread
Results 1 to 13 of 13

calculating the number of days

Hybrid View

Deanomcbeano calculating the number of days 10-01-2012, 05:07 PM
Deanomcbeano Re: calculating the number of... 10-02-2012, 03:06 AM
Winon Re: calculating the number of... 10-02-2012, 03:36 AM
Deanomcbeano Re: calculating the number of... 10-02-2012, 03:52 AM
Fotis1991 Re: calculating the number of... 10-02-2012, 04:18 AM
Deanomcbeano Re: calculating the number of... 10-02-2012, 04:36 AM
Fotis1991 Re: calculating the number of... 10-02-2012, 04:53 AM
Deanomcbeano Re: calculating the number of... 10-02-2012, 05:04 AM
Fotis1991 Re: calculating the number of... 10-02-2012, 05:22 AM
Deanomcbeano Re: calculating the number of... 10-02-2012, 05:30 AM
Fotis1991 Re: calculating the number of... 10-02-2012, 05:44 AM
Winon Re: calculating the number of... 10-02-2012, 06:16 AM
Deanomcbeano Re: calculating the number of... 10-02-2012, 08:22 AM
  1. #1
    Registered User
    Join Date
    08-22-2007
    Posts
    32

    calculating the number of days

    hi

    i have a spreadsheet of run and cycle data. I am trying to set up a formula that will calculate:

    * the run or cycle number (starting at 1)
    * the number of days since a previous run, or previous cycle,
    * the total weekly miles for cycling and running

    I've attached an example spreadsheet, which shows some basic run/cycle data on the left hand side, and on the right are blank spaces that I want calculated. Can anyone assist with the formulas I should be using?


    I am using excel 2003.

    Cheers

    Dean
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-22-2007
    Posts
    32

    Re: calculating the number of days

    can anyone help with this formula? is there any other info I could provide that would help?

    cheers

    Dean

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: calculating the number of days

    Hi Deanomcbeano,

    On Sheet 2 I have changed the Sheet layout a little to display the Date in a single Column. Have a look at it and see if it now shows what you want.

    Also see the "Please consider" note at the bottom of this post.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    08-22-2007
    Posts
    32

    Re: calculating the number of days

    Hi Winon

    Thank you for the response. I was hoping to calculate the results per week, i.e. total runs for week 38, total for week 39, rather than cumulatively. I've included an example sheet with the data as it should work out - but without the formulas. Would you be able to take a look?

    Regards
    Dean
    Attached Files Attached Files

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: calculating the number of days

    Hi

    ... I was hoping to calculate the results per week
    In this case(as you use Excel 2003), SUMPRODUCT, maybe works for you.

    Unfortunatelly the results are not the same as these that you put manually to your examle.

    Do you mind to take a look to my sheet example?
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Registered User
    Join Date
    08-22-2007
    Posts
    32

    Re: calculating the number of days

    Hi Fotis

    Thanks for the assistance. The columns K and N are calculating correctly, and I can use that formula. However columns I, J, L and M are not right - the totals should be cumulatively increasing for columns I and L. Whilst for columns J and M the days between each run should only be in single figures as in my example.

    Any further suggestions?

    Cheers
    Dean

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: calculating the number of days

    Hi Dean.

    .
    ..... I was hoping to calculate the results per week
    The results in Columns I & L that you want to get, you can get these, using a COUNTIF, as first suggested by Winon. But in this case you don't have result per week. You have total result.

    In I2 and copy down to I8, put this formula.

    =COUNTIF(B2:$B$8,"Run")

    This gives you the result that manually, put there. Is this correct?

  8. #8
    Registered User
    Join Date
    08-22-2007
    Posts
    32

    Re: calculating the number of days

    Hi Fotis

    Thank you! That sorts out columns I and L - actually that was a pretty simple formula - should have sorted that myself. Any suggestions for calculating the days as I want in columns J and M?

    Cheers
    Dean

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: calculating the number of days

    Let's try this.

    In J2 and copy down, to J8.

    =IF(ISERROR(E2-INDEX(E3:$E$8,MATCH(B2,B3:$B$8;0))),"",(E2-INDEX(E3:$E$8,MATCH(B2,B3:$B$8,0))))

  10. #10
    Registered User
    Join Date
    08-22-2007
    Posts
    32

    Re: calculating the number of days

    That's come up with an error.

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: calculating the number of days

    What kind of error?
    Attached Files Attached Files

  12. #12
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: calculating the number of days

    Wow!,

    This turned out to be more complicated than what it appeared to be. Thank you for helping out here Fotis.

    Sheet 2 of the attached WorkBook, is the best I can come up with. I think, we should maybe consider splitting the Data as shown in the other Sheets I've created. And use Sheet 1 as a Summary of the Data.

    Just an idea to simplify things a bit. Look at it, and see if you like.
    Attached Files Attached Files
    Last edited by Winon; 10-02-2012 at 06:18 AM.

  13. #13
    Registered User
    Join Date
    08-22-2007
    Posts
    32

    Re: calculating the number of days

    thanks guys, i'm still working through some of the changes, can't quite get everything i want to work as it should just yet. will come back to you if needs be.

    cheers
    dean

+ 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