+ Reply to Thread
Results 1 to 9 of 9

Add formula to calculate amount of days

  1. #1
    Registered User
    Join Date
    05-15-2017
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    4

    Add formula to calculate amount of days

    Hello, I have attached my file, and I would like to add a formula in column c that would tell me in how many days the x is in, for each line.

    Thank you very much for your help.
    Attached Files Attached Files

  2. #2
    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: Add formula to calculate amount of days

    Hi and welcome to the forum.

    You don't say where the xs are although I assume you are manually entering on each row. But what do you mean by 'In how many days'? Is that starting from 1st Jan, pr from some other date like say today?

    If the former then perhaps in C8
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But why not explain exactly what you're trying to achieve since it's somewhat unusual to see columns used for so many dates , i.e. out to column AGL. Normally when so many dated are involved it's better to have them listed vertically but if you tell us the final goal then there may well be a more efficient way of getting what you want. For instance given two dates, say 1st Jan and the date on which you currently record an x it's much simpler to subtract one date from the other.
    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.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Add formula to calculate amount of days

    You not confirm about where to enter "X".
    I assume you entered "X" in row 8
    formula in "C7"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Registered User
    Join Date
    05-15-2017
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    4

    Re: Add formula to calculate amount of days

    Hello, I would like to calculate as of today's date, I added todays date in the file, its attached again.

    Sorry for the late reply, I was away.

    Thank you

    Pascale
    Attached Files Attached Files

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Add formula to calculate amount of days

    In C8, try

    =MIN(IF((D8:ZS8="x")*(D$6:ZS$6>=TODAY()),D$6:ZS$6))-TODAY() Ctrl Shift Enter

  6. #6
    Registered User
    Join Date
    05-15-2017
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    4

    Re: Add formula to calculate amount of days

    hello, Thna k you very much, this formula worked, now can i have it leaft at zero if there are no x in the row?

    Pascale

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Add formula to calculate amount of days

    Sure, change the formula to this:

    =IF(COUNTIF(D8:ZS8,"x"),MIN(IF((D8:ZS8="x")*(D$6:ZS$6>=TODAY()),D$6:ZS$6))-TODAY(),0) Ctrl Shift Enter

    If that solved your question, please mark this thread as SOLVED.

  8. #8
    Registered User
    Join Date
    05-15-2017
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    4

    Re: Add formula to calculate amount of days

    Thnak you very much for your help.this is resolved. But I don't know where to put this post into the resolved status.

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Add formula to calculate amount of days

    Great! Happy to help.

    To mark a thread as SOLVED, follow these steps:

    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] calculate amount of days by name
    By RachelMads02 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-05-2016, 03:02 AM
  2. [SOLVED] Calculate a date dervied from 3 cells + calculating the amount of spec days.
    By RachelMads02 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2016, 09:57 AM
  3. Formula to calculate Amount Paid and Amount Past Due
    By TinaAlldredge in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2016, 09:19 AM
  4. [SOLVED] How to calculate debtors ageing amount in days on FIFO basis
    By King_BD in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-20-2015, 10:57 PM
  5. Calculate amount of days per year within range
    By constructionbart in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2014, 05:24 AM
  6. Replies: 6
    Last Post: 02-23-2010, 04:41 AM
  7. Replies: 2
    Last Post: 11-15-2009, 03:58 PM

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