+ Reply to Thread
Results 1 to 4 of 4

To Select Max of 3 Days

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Exclamation To Select Max of 3 Days

    Hi Users,

    I need a help. There are 5 (Days) Columns from Sun-Thu, employees were asked to work max for 3 days.

    In case, if we try to input data (Number 1) for the 4th day, an error message to pop up saying "only 3 days can be filled". Employees will work any of the 3 days in the week.

    Thanks,
    Attached Files Attached Files
    Regards,

    Fareed

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: To Select Max of 3 Days

    You can use data validation for that.
    Select B2:F5 & in data validation select Custom & use
    =COUNT($B2:B2)<=3

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: To Select Max of 3 Days

    Small macro in worksheet module
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: To Select Max of 3 Days

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

+ 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: 03-27-2017, 10:20 PM
  2. Catastrophic Error with Slicer To Select x Days
    By Tellm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2015, 05:56 AM
  3. [SOLVED] Formula for a planner to select working days only?
    By Ciarmccabe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 06:18 PM
  4. Select a cell in a row 30 days prior to today's row
    By jphalverson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2013, 10:34 AM
  5. Pivot Filter Macro - Auto Update to select previous 30 days.
    By rocksolid77 in forum Excel General
    Replies: 2
    Last Post: 11-26-2012, 01:46 PM
  6. Replies: 6
    Last Post: 03-06-2012, 03:58 PM
  7. select specific days in Pivot charts using Macros
    By hattrick_123a in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2011, 08:43 PM

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.6.0 RC 1