+ Reply to Thread
Results 1 to 4 of 4

Populate cells if there is a MIN & MAX value

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    263

    Populate cells if there is a MIN & MAX value

    If I have a staff member that takes leave from 4-01-2014 to and including the 15-01-2014, is there any way I can
    populate the 2 mentioned cells and the cells in between. I have attached an example spreadsheet - Sheet 1 contains the Staff
    Member's name, the date they have chosen to start their leave and the date they wish to finish. On sheet 2 I have manually filled in
    each day the staff member will be on leave. I'm just wondering if there is a way Excel will automatically fill in the fields for me. This
    will help me in completing other stages of my Staff spreadsheet. Thank you for any assistance you can offer.
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,371

    Re: Populate cells if there is a MIN & MAX value

    Fix it coach, pls check the files


    Azumi
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Populate cells if there is a MIN & MAX value

    My apologies - File updated
    Attached Files Attached Files

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Populate cells if there is a MIN & MAX value

    try this in B2:
    =IF(COUNTIFS(Sheet1!$A:$A,$A2,Sheet1!$B:$B,"<="&B$1,Sheet1!$C:$C,">="&B$1),"On Leave","")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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: 5
    Last Post: 10-15-2012, 06:33 PM
  2. Replies: 1
    Last Post: 07-24-2012, 02:06 PM
  3. Populate cells based on conditions across range of cells
    By yerrics in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-14-2010, 08:50 PM
  4. Replies: 6
    Last Post: 04-21-2005, 01:06 PM
  5. [SOLVED] Auto populate cells based on 2 cells division.
    By Chance224 in forum Excel General
    Replies: 0
    Last Post: 04-04-2005, 05:06 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