+ Reply to Thread
Results 1 to 6 of 6

MAX and MIN in the same cell

  1. #1
    Registered User
    Join Date
    06-26-2019
    Location
    georgia
    MS-Off Ver
    o365
    Posts
    9

    MAX and MIN in the same cell

    Im looking to have a the MIN and MAX functions in the same cell. What i need to do is use the number of working days i already have in cell H47 be the max for the result and the Working days left in the month that i already have calculated in cell G47 with a min of 0.

    the current formula im using is great but it doesn't stop the number from going above the total number of working days in the month.

    Here is the formulas i have so far:
    • =MAX(0,$H$47-$G$47)
    • =MIN($H$47,NETWORKDAYS(TODAY(),EOMONTH($I$47,0),Holidays!$A$3:$D$24))
    • =NETWORKDAYS(I47,I48,Holidays!A3:D24)

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: MAX and MIN in the same cell

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    06-26-2019
    Location
    georgia
    MS-Off Ver
    o365
    Posts
    9

    Re: MAX and MIN in the same cell

    added example
    Attached Files Attached Files

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: MAX and MIN in the same cell

    Try this in A2:

    =MAX(0,NETWORKDAYS(D1,D2,Sheet2!A1:D22)-MIN(NETWORKDAYS(D1,D2,Sheet2!A1:D22),NETWORKDAYS(TODAY(),EOMONTH($D$1,0),Sheet2!A1:D22)))

  5. #5
    Registered User
    Join Date
    06-26-2019
    Location
    georgia
    MS-Off Ver
    o365
    Posts
    9

    Re: MAX and MIN in the same cell

    worked great thank you!!!

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: MAX and MIN in the same cell

    You're welcome. Happy to help.

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

+ 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] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. [SOLVED] cell a function doing math on previous sheet, cell b - cell c result in cell d...
    By dad812 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-08-2018, 08:20 AM
  3. Replies: 6
    Last Post: 01-23-2018, 04:49 AM
  4. If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.
    By tristanhathaway in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 08:05 PM
  5. [SOLVED] How to create/run "cell A equals Cell B put Cell C info in Cell D
    By abmb161 in forum Excel General
    Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  6. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  7. Replies: 1
    Last Post: 11-03-2012, 09:05 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