+ Reply to Thread
Results 1 to 5 of 5

Formula to populate cells based on dates

  1. #1
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    Formula to populate cells based on dates

    Good afternoon All,

    I am trying to auto populate cells within a date range specified. I have a start and end date (Column A and B) and then individual columns for each day. I need the day to show C if it within the date ranges. Please can someone help with this as I am at a total loss. I have attached a sample of the sheet.

    Thank you.

    Katie
    Attached Files Attached Files

  2. #2
    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,797

    Re: Formula to populate cells based on dates

    you can use this formula
    =AND($A2<=C$1,$B2>=C$1)
    you will get a TRUE or FALSE
    add an IF to get a different OUTPUT
    or use the formula in conditional formatting to get a colour

    SHOW C
    is that put the letter C into the cell

    =IF ( AND($A2<=C$1,$B2>=C$1) , "C" , "" )

    i have changed the end date , so its can be seen on a small grid
    also you had 2012 as the end date
    Attached Files Attached Files
    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.

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,324

    Re: Formula to populate cells based on dates

    Please Login or Register  to view this content.
    Use this formula for conditional format
    Attached Files Attached Files
    Last edited by popipipo; 03-15-2020 at 08:57 AM.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    Re: Formula to populate cells based on dates

    That's perfect! Thank you so much.

  5. #5
    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,797

    Re: Formula to populate cells based on dates

    you are welcome
    Like the use of median, would never have thought of that , as it uses thes conditions
    • When the total number of values is odd, the Excel MEDIAN function returns the middle number in the data set.
    • When the total number of values is even, it returns an average of the two middle numbers.

    I like that and how it works for a gantt chart
    much easier

    noted for future use - thanks
    Last edited by etaf; 03-15-2020 at 09:32 AM.

+ 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] Formula to populate cells based on other data
    By WhirledPeas in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-08-2020, 08:24 PM
  2. Formula to populate cells based on Start and Finish dates.
    By Motox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2019, 11:53 PM
  3. [SOLVED] Formula Needed to populate dates from one cell to another based on matching ID #s
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2017, 10:53 AM
  4. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2014, 07:42 PM
  5. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 07:55 AM
  6. Replies: 1
    Last Post: 01-08-2013, 02:33 PM
  7. Replies: 5
    Last Post: 10-15-2012, 06:33 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