Perhaps off topic but need sytax error help

TWTHOMAS

Board Regular
Joined
Mar 26, 2010
Messages
96
Sorry if this is outside of the scope of this forum but I am not aware of where to ask. Trying to help a coworker who is trying to use this code in SharePoint.

=IF(ISBLANK([Start Date]),"",IF(ISBLANK([End Date]),"",IF([Work Schedule]="Part-Time",NETWORKDAYS([Start Date],[End Date])*(4),IF([Work Schedule]="Full-Time",NETWORKDAYS([Start Date],[End Date])*(8),""))))

This returns a syntax error. We have triple checked the names and all are correct. See any other issues?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Can you show a sample of what table looks like? Headings row and one row of data would be enough.

EDIT: Never mind, see next post.
 
Last edited:
Upvote 0
Your formula works fine for me as long as it is in the table.

$scratch.xlsm
ABCD
1Start DateEnd DateWork ScheduleFormula
28/23/20239/1/2023Part-Time32
table syntax
Cell Formulas
RangeFormula
D2D2=IF(ISBLANK([Start Date]),"",IF(ISBLANK([End Date]),"",IF([Work Schedule]="Part-Time",NETWORKDAYS([Start Date],[End Date])*(4),IF([Work Schedule]="Full-Time",NETWORKDAYS([Start Date],[End Date])*(8),""))))



If you want to use it outside the table, your structured references have to be qualified with the table name like this:

Excel Formula:
=IF(ISBLANK(Table1[@[Start Date]]),""
 
Upvote 0

Forum statistics

Threads
1,215,300
Messages
6,124,138
Members
449,145
Latest member
Suresh215

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