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
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
Last edited by AliGW; 02-28-2024 at 12:33 PM.
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.
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.
Explain in WORDS what you would expect that to do.
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
Thats what the formula I gave you would do. Please provide a sample workbook.
Here you go!
Thank you!!
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!!)
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.
Your duplicate thread and response have been moved here. Please review the forum rules. And be patient in future. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks