Date and Networkdays

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
120
Office Version
  1. 365
Platform
  1. Windows
I am currently using this formula to provide end of month dates which works perfectly but what I want to do in addition is to make the output to be networkdays only but I cannot workout where I need to add this within the formula to make that happen.
=IF(ROWS(E$2:E2)>($B$4*12);"";EOMONTH(TRIM($B$2);ROWS(E$2:E2)-1))

In addition to this in cell B2 is it possible to have a date format that will let an end user type in a date in dd/mm/yyyy format and get a long date output. when I use the date function it wants me to input in this order yy/mm/dd
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
11,900
Office Version
  1. 365
Platform
  1. Windows
Oops, I only looked at the formula, not the positioning.

=IF(ROWS(E$2:E2)>($B$4*12),"",WORKDAY(EOMONTH(B$2,D2-1)-1,1))
 

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
120
Office Version
  1. 365
Platform
  1. Windows
Absolutely perfect. Thank you so much for your time and efforts.
 

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
120
Office Version
  1. 365
Platform
  1. Windows
I have another query that if I am allowed to ask as it relates to the same spreadsheet is, in cell b9 I have the total interest payable, but the calculation is incorrect. What I need in cell B9 is a formula that calculates the value of all interest payments based on the value in cell B4 so something like SUMIF B4=1;F2:F13,IF B4=2;F2:F25;IF B4=3;F2:F37 but I have tried a similar type formula which unfortunately didn't work.
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
11,900
Office Version
  1. 365
Platform
  1. Windows
Perhaps

=SUM(F2:INDEX(F:F,B4*12+1))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,263
Messages
5,595,166
Members
413,973
Latest member
leon1974mk

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top