ExcelNoobUser
New Member
- Joined
- Jan 30, 2024
- Messages
- 10
- Office Version
- 365
- Platform
- Windows
Hi, this is a continuation of my previous question a few days ago at this thread but I created a new post as I wanted to ask something different albeit related to that thread :How to use WORKDAY to calculate the Final Training Day and exclude Weekends and Public Holidays
I want to ask how to add in an IF Statement to work with the WORKDAY function where in column H, if it is blank, the WORKDAY function would work as normal but if there is a date in the cell i.e 11-May-18, that the output in the B column will be 11-May-18 unless it is blank in which it outputs as normal from the WORKDAY function. I created an IF statement =IF(H8<>"","H8","B8") and merged with the the WORKDAY function from the previous thread, =WORKDAY(G8,300/XLOOKUP(F8,$J$8:$J$13,$K$8:$K$13),$M$8:$M$25), but for some reason it still gives the same output as before instead of taking the output in the H column if it's not blank. Is there a way I can merge the IF statement with the WORKDAY function to get it to work as intended.
I want to ask how to add in an IF Statement to work with the WORKDAY function where in column H, if it is blank, the WORKDAY function would work as normal but if there is a date in the cell i.e 11-May-18, that the output in the B column will be 11-May-18 unless it is blank in which it outputs as normal from the WORKDAY function. I created an IF statement =IF(H8<>"","H8","B8") and merged with the the WORKDAY function from the previous thread, =WORKDAY(G8,300/XLOOKUP(F8,$J$8:$J$13,$K$8:$K$13),$M$8:$M$25), but for some reason it still gives the same output as before instead of taking the output in the H column if it's not blank. Is there a way I can merge the IF statement with the WORKDAY function to get it to work as intended.