+ Reply to Thread
Results 1 to 4 of 4

Thread: Help with formula to add dates (if cell contains certain text) and Text Colour

  1. #1
    Registered User
    Join Date
    12-02-2009
    Location
    Belfast, N.Ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Help with formula to add dates (if cell contains certain text) and Text Colour

    Hello guys, I have been racking my brain all morning trying to figue out the correct formulas. As I am not yet overly familiar with Excel formulas I thought it would be best to ask to ask for a little help rather than waste any more hours on this.

    Basically I send samples away to a lab and depending on what the lab are testing them for the turn-around time will differ. I would like a column to calculate the date that the results are due back.
    For Example:
    If they are tested for Legionella add 14 days
    If they are tested for Bacteria add 5 days
    If they are tested for Chemical add 10 WORKING days (This one completely stumped me!)

    I will manually input the day the samples are taken in Column A and I list what they are tested for D. The only Column that I need calculated for me is Column H.

    Just to be awkward I would also like the text to be black by default but change to red if the date has expired (ie the results are late)

    Any help or pointers would be very very much apprecaited. I have attached a dummy version of my Spreadsheet if it helps

    Thanks

    Anna
    Attached Files Attached Files
    Last edited by Ladyanna; 12-05-2011 at 08:26 AM.

  2. #2
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,303

    Re: Help with formula to add dates (if cell contains certain text) and Text Colour

    Hi Anna.

    In H2, write the formula:

    =IF(D2="Legionella";A2+14;IF(D2="Bacteria";A2+5;IF(D2="Chemical";WORKDAY(A2;10))))
    For conditional formatting, write the code:

    =TODAY()>$H3
    >>>cOLOUR FORMAT>>rED


    Pls take a look to the attachement.

    Is it OK for you?

    Regards
    Attached Files Attached Files
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    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.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  3. #3
    Registered User
    Join Date
    12-02-2009
    Location
    Belfast, N.Ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Help with formula to add dates (if cell contains certain text) and Text Colour

    PERECT!! Thank-you very very much

  4. #4
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,303

    Re: Help with formula to add dates (if cell contains certain text) and Text Colour

    You're welcome.

    Please mark the thread as Solved.
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    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.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

+ 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.2.0