Access Expression/formula question

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,347
Office Version
  1. 365
Platform
  1. Windows
Whats wrong with this formula? it will not let me enter it. But I am not seeing where the problem is.

Submitted_Late: IIf([[PDIR Completed] Is Null,"",IIf([PDIR Completed] > [PDIR Due Date] ,DateSerial(Year([PDIR Submission Date]),Month([PDIR Due Date])+1,1)-1),"")

I am checking first to see if I have a date in the PDIR Completed field. If I do then I want to see if that date is greater than the date in the PDIR Due Date Field. If it is, then I want to do a "Eomonth" formula to enter the PDIR Due Date
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
For one thing, you have double square brackets:
Submitted_Late: IIf([[...
 
Upvote 0
Submitted_Late: IIf([PDIR Completed] Is Null,"",IIf([PDIR Completed] > [PDIR Due Date] ,DateSerial(Year([PDIR Submission Date]),Month([PDIR Due Date])+1,1)-1,""))

Thanks Joe4
 
Upvote 0
So, did that solve the issue, or is there still other problems with the formula?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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