+ Reply to Thread
Results 1 to 5 of 5

Count number of days and formula with text result

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    Saudi Arabia
    MS-Off Ver
    Excel 2007
    Posts
    36

    Count number of days and formula with text result

    Hi to all wizards,


    Please help me to automate the attached sheet. Really im poor about excel knowledge.

    In column C (DURATION), I want a formula to calculate the days from the date given in column B (ATA) that will result like (8 DAYS)

    In culomn E (REMARKS), I want a formula that will result to text like if culomn C (DURATION) is less than 20 days the result is UNDER PROCESS, if column C (DURATION) is more than 20 days the result is FOLLOW UP, if column C (DURATION) is more than 30 days the result is DELAYED and if any date is encoded in column D (RECEIVED DATE) the result is RECEIVED.

    I want also to fill the color the ranges from A to E depending on the column E (REMARKS) same as in the attachment.

    Im really sorry. I need your help.

    Thank you and God bless you always!
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Count number of days and formula with text result

    Hi Joseph,

    In the future, please only post one question per thread. The second and third questions have nothing to do with the thread title.

    For column C, in cell C5 simply use:

    =TODAY()-B5

    Fill that down to C8.

    In E5 use the formula:

    =IF(ISNUMBER(D5),"RECEIVED",LOOKUP(C5,{0,21,31},{"UNDER PROCESS","FOLLOW UP","DELAYED"}))

    Fill that down to E8.

    You can then use conditional formatting to highlight the various remarks in column E. (Search for "Conditional Formatting" using the search function above and you'll see many examples.)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Count number of days and formula with text result

    Try the attached and let me know if it gives you what you are after?
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-02-2012
    Location
    Saudi Arabia
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Count number of days and formula with text result

    Thank you so much Sir!

    Sorry and Yes I'll do it in the future.

    Appreciated.

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Count number of days and formula with text result

    Joseph, don't know is this matte for you. Since you are using TODAY() formula in column C, this will keep count the duration, even if remarks changed to 'Received'.

    If received date always be > ATA date, then you can use IF formula to check, if D=date then D-C else TODAY()-B.
    If received date <>ATA then I think will require Change_Event VBA.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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