I am trying to use the following code to generate the number of the Fiscal month column in a Pivot table.
= If(Month(SSP5YrRTAHMin[PSH-Date])>=5 And (Month([PUB_PSHISTOR]![PSH-Date])<=12,Month([PUB_PSHISTOR]![PSH-Date])-4,Month([PUB_PSHISTOR]![PSH-Date])+8))
It works great in ACCESS as an IIF statement, but it says there is a syntax error in my Yes in Excel 2010 as an If.
Any help would be appreciated.
Thanks jpl
= If(Month(SSP5YrRTAHMin[PSH-Date])>=5 And (Month([PUB_PSHISTOR]![PSH-Date])<=12,Month([PUB_PSHISTOR]![PSH-Date])-4,Month([PUB_PSHISTOR]![PSH-Date])+8))
It works great in ACCESS as an IIF statement, but it says there is a syntax error in my Yes in Excel 2010 as an If.
Any help would be appreciated.
Thanks jpl