+ Reply to Thread
Results 1 to 4 of 4

Auto populate cells based on dates and other conditions

  1. #1
    Registered User
    Join Date
    03-13-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Auto populate cells based on dates and other conditions

    Hi,

    I've attached an excel with three pages.

    Page 1 would be a general timing plan, so front product to go into production from a start and end date.

    Page 2 would be a facility plan. So Front product would go into a number of cells out of 12.

    Page 3 I would like to look at the production dates, match the product up highlight the cells that are in use on that date.

    Is that possible?

    So for arguments sake. Today if the front product was in production, page 3 will show the cells as in use with a cell fill of green. If there was a clash red, or nothing scheduled empty cell.

    I've got some experience of macro programming but not to the extent of you guys, this is a little complex.

    Any help appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,955

    Re: Auto populate cells based on dates and other conditions

    This proposal adds two columns (P:Q) on the Products Sheet.
    Columns P:Q show the start and end dates for the product and are populated using: =IF($B5="","",INDEX(Timing!H$8:H$167,MATCH($B5,Timing!$B$8:$B$167,0)))
    On the Flex Cell Capacity sheet B6:M34 are populated using: =COUNTIFS(Products!C$5:C$6,"x",Products!$P$5:$P$6,"<="&$A6,Products!$Q$5:$Q$6,">="&$A6)
    Note that B6:M34 are custom formatted ;;; to hide the results of the formula.
    The conditional formatting rules are:
    For green: =B6=1
    For Red =B6>1
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    03-13-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    16
    Absolutely perfect this, going to look into how it’s done so I can understand and evolve it. Thanks very much

    Quote Originally Posted by JeteMc View Post
    This proposal adds two columns (P:Q) on the Products Sheet.
    Columns P:Q show the start and end dates for the product and are populated using: =IF($B5="","",INDEX(Timing!H$8:H$167,MATCH($B5,Timing!$B$8:$B$167,0)))
    On the Flex Cell Capacity sheet B6:M34 are populated using: =COUNTIFS(Products!C$5:C$6,"x",Products!$P$5:$P$6,"<="&$A6,Products!$Q$5:$Q$6,">="&$A6)
    Note that B6:M34 are custom formatted ;;; to hide the results of the formula.
    The conditional formatting rules are:
    For green: =B6=1
    For Red =B6>1
    Let us know if you have any questions.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,955

    Re: Auto populate cells based on dates and other conditions

    You're Welcome and thank you for the feedback. One way to learn what a formula is doing is to utilize the Evaluate Formula feature on the Formulas tab.
    Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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: 2
    Last Post: 12-26-2019, 03:47 PM
  2. Auto populate dates based on date range
    By tmva in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-04-2018, 10:15 AM
  3. Auto Populate Calendar based on rental dates
    By NickolasH in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2017, 11:45 AM
  4. Replies: 1
    Last Post: 09-29-2014, 12:59 AM
  5. Replies: 2
    Last Post: 07-31-2013, 02:00 PM
  6. Macro Needed to Auto-Populate Rows Based on the Conditions of a Cell
    By lago3525 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2012, 04:35 PM
  7. [SOLVED] Auto populate dates of a month based on dropdown selection
    By tstruntz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2012, 10:10 AM

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