+ Reply to Thread
Results 1 to 10 of 10

Day counter is this possible

  1. #1
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Day counter is this possible

    Hello Guys,

    wondered if it is possible if i could enter 01/02/2012 in a cell and then 01/03/2012 in another and it calculate how many days that there has been.


    thank you guys


    ricky

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Day counter is this possible

    Hello moley165,

    You can just cell that contains the lower date from the higher one to get the number of days that has past.

    Example

    Please Login or Register  to view this content.

  3. #3
    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: Day counter is this possible

    Hi

    =B1-A1

    Format=General

    A1=01/02/12

    B1=01/03/12
    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.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Day counter is this possible

    If you mean how many days from one date to the other then just =A2-A1, where A1 contains the earliest date and A2 the latest date.
    Format the cell as a number. If you want to see the inclusive total of days then just add +1
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Day counter is this possible

    thank you guys,

    now if i wanted to set charges dependant on how many days there were could i do this eg: amount of money £1000, and the days counted are 1-30 and the charge is 25% then the answer to be £250



    thank you for your help

    ricky
    Last edited by moley165; 04-11-2012 at 10:49 AM. Reason: better explination

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Day counter is this possible

    Hi

    =IF(A1<31,B1*C1,0)

    where A1 = then number of days, B1 = amount and C1 = %charge.

    If the charge % varies with the amount or number of days or both then you'd be better advised to create a VLOOKUP table to determine the % and use the VLOOKUP in the formula instead of C1.

  7. #7
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Day counter is this possible

    how would i go about setting up a vlookup for this sorry to be dim never used that befor

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Day counter is this possible

    What are your variable values?

    i.e. is the charge % dependent on the amount, number of days or both?

    Assuming the charge % is dependent on the amount then build a two column table with amounts in the first column and % in the second column.

    Then a VLOOKUP would be

    =VLOOKUP(amount_cell,your_lookup_table_range,2,False)

    Upload a workbook with a table of amounts & % if you need further explanation.

  9. #9
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Day counter is this possible

    Hello i have attached a work book (example) i need it to look at the number of days in the box labled days on cover then get the relevant percentage and take that away from the premium in the box labelled premium and finally show the figure in the pro rata charge box.

    thank you again guys



    example.xls
    Last edited by moley165; 04-11-2012 at 12:01 PM.

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Day counter is this possible

    Hi,

    A better solution which avoids the need for a table is

    E3:
    =CHOOSE(MIN(5,ROUNDUP(D3*4/120,0)),25%,40%,55%,75%,100%)*A3

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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