+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting

  1. #1
    Registered User
    Join Date
    12-05-2013
    Location
    Guildford
    MS-Off Ver
    Excel 2010
    Posts
    2

    Conditional Formatting

    Hello,

    I want to find a way for the following:-
    If I enter something in column A which is a date format, depending on when it is I would like a value to be put into a separate column

    so for example:-
    between the 5th December and 10th January 2014 - 30
    between the 13th January and 20th January - 20
    the rest of January - 10

    In column A I put in 19th December then this will auto pupulate column D with the right value from above, which should be 30.

    Is this possible?

    Calvin

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Conditional Formatting

    It is not conditional formatting, which relates to changing the FORMAT of a cell depending on some condition - it is a conditional formula that you require. Try this in D2:

    =IF(AND(A2>=DATE(2013,12,5),A2<=DATE(2014,1,10)),30,IF(AND(A2>=DATE(2014,1,13),A2<=DATE(2014,1,20)),20,IF(AND(A2>DATE(2014,1,20),A2<=DATE(2014,1,31)),10,"")))

    then you can copy this down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional Formatting

    Try
    =IF(AND(A2>=DATEVALUE("3/12/2013"),A2<=DATEVALUE("10/1/2014")),30,IF(AND(A2>=DATEVALUE("13/1/2014"),A2<=DATEVALUE("20/1/2014")),20,10))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    12-05-2013
    Location
    Guildford
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Conditional Formatting

    Thanks Pete, that's worked like a charm!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Conditional Formatting

    Glad to be of help - thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

+ 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. Replies: 3
    Last Post: 11-04-2013, 12:47 AM
  2. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  3. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  4. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  5. Replies: 1
    Last Post: 03-05-2012, 06:20 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