How to get two formulas in one cell

sundodger

New Member
Joined
Aug 9, 2018
Messages
17
Hi All, I currently have the formula =IF(A2=4,NETWORKDAYS(B3-6,E3,'Bank Holidays'!A2:A10))
In A2 is a formula counting how many Fridays are in a month. B3 has the Date of the First Friday and E3 the date of the 4th Friday.
what i would like to do is if A2=5 then the E3 would calculate on F3 instead if that Friday is in the same month as B3
Hope this makes sense

Thanks
Mark
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
hi not super clear, you are missing part of If statement, FALSE, IF(condition, true, false)

=IF(A2=4,NETWORKDAYS(B3-6,E3,'Bank Holidays'!A2:A10))

=IF(A2=4,NETWORKDAYS(B3-6,E3,'Bank Holidays'!A2:A10), IF(A2=5,NETWORKDAYS(B3-6,F3,'Bank Holidays'!A2:A10) ) )
 
Upvote 0
If A2 will always be either 4 or 5, you could shorten that up to

=NETWORKDAYS(B3-6,IF(A2=4,E3,F3),'Bank Holidays'!A2:A10)
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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
Back
Top