+ Reply to Thread
Results 1 to 10 of 10

Toggle from WORKDAYS To NETWORKDAYS

  1. #1
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Toggle from WORKDAYS To NETWORKDAYS

    Is it possible, through a remote cell reference or drop-down list, to toggle between Workdays and Networkdays within a formula?
    {=IF(Data!N2="","",NETWORKDAYS(Data!$D2,Data!N2))}
    TYVM!!
    Sick
    Attached Files Attached Files
    Last edited by AliGW; 02-28-2024 at 12:33 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,861

    Re: Toggle from WORKDAYS To NETWORKDAYS

    Yes. Assuming the cell with the drop-down is Data!N2:

    =IF(Data!N2="","",IF(Data!N2=value_a,networkdays_formula,workdays_formula))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: Toggle from WORKDAYS To NETWORKDAYS

    Thank you for helping!
    The DDL was not in N2. It's in REPORTING!W2.
    I'm omitting the 1st IF for now and this is where I'm at:
    [=IF(Reporting!W2=value_a,networkdays_formula,workdays_formula)(Data!$G2,Data!O2))]
    Last edited by sick stigma; 02-27-2024 at 01:34 PM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,861

    Re: Toggle from WORKDAYS To NETWORKDAYS

    Explain in WORDS what you would expect that to do.

  5. #5
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: Toggle from WORKDAYS To NETWORKDAYS

    Rather than manually changing a formula in 24 cells from WORKDAYS to NETWORKDAYS, I'd like to be able to toggle between the two in some fashion. I'm envisioning a drop-down list in a separate cell but am open to any suggestions. The goal is to look at a data set as workdays and with 1 or 2 clicks, see it in networkdays. All cells always need to change together.
    TYVM!
    Sick

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,861

    Re: Toggle from WORKDAYS To NETWORKDAYS

    That’s what the formula I gave you would do. Please provide a sample workbook.

  7. #7
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: Toggle from WORKDAYS To NETWORKDAYS

    Here you go!
    Thank you!!
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Toggle from WORKDAYS To NETWORKDAYS

    I'm reposting this because I did a horrible job of it the first time. Let's see if I can be more clear.
    In a workbook, I have 24 cells calculating a range of dates. I need to see the range as both workdays and networkdays.
    Is it possible to insert the function name from a drop-down list? This would allow me to toggle between the two.
    In the attached workbook A2 holds the formula.
    Any help is greatly appreciated!
    Sick
    (and, sorry about the last attempt!!)
    Attached Files Attached Files

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,748

    Re: Insert WORKDAYS or NETWORKDAYS from Drop-Down list

    networkdays = networkdays(startdate, enddate, holidays)
    Workday = workday(startdate , days , holidays)

    so where do we get the start / end date and the number of days ?

    you can just use an IF
    =IF(E1="networkdays",NETWORKDAYS(B1,C1), WORKDAY(B1,C1))

    A2 has no formula

    expected results and the formula entered somewhere manually to show what you want to use and calculate

    in A1 is =E1(F12B1,C1)
    whats that
    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.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,861

    Re: Toggle from WORKDAYS To NETWORKDAYS

    Your duplicate thread and response have been moved here. Please review the forum rules. And be patient in future. Thanks.

+ 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] Toggle Hide/Unhide Cols & Toggle adj column width
    By anare in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-20-2018, 11:04 AM
  2. [SOLVED] how do i make a toggle button change other toggle buttons value to false
    By kevinu in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-10-2018, 04:19 PM
  3. Differance Networkdays vs Workdays
    By Trumpy in forum Excel General
    Replies: 2
    Last Post: 09-18-2015, 06:50 AM
  4. [SOLVED] Monthly workdays, monthly workdays to date & public holidays
    By blackburnsexcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-21-2015, 07:08 AM
  5. Toggle Button Does not Toggle OFF when Clicked
    By robbfamily in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-19-2014, 05:12 PM
  6. Replies: 1
    Last Post: 02-13-2014, 10:55 PM
  7. [SOLVED] how to use workdays or networkdays in VBA
    By ABG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2006, 03:45 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