Solved

Excel formulas to access queries

Posted on 2008-10-09
3
403 Views
Last Modified: 2013-11-27
IN the attached excel file columns J, K, and L are calculated, so far you all have helped me with column J and now I am struggling to finish the FRT Met or Overdue column, the excel formula is this =IF(OR(LEFT(M5,2)="CN",LEFT(M5,2)="KN"),"Met",IF(I5<=J5,"Met","Overdue")) and what I have come up with so far in access is this :

FRT Met or Overdue:
IIf(Left([WHY_MISS],2)="CN" Or

Left([WHY_MISS],2)="KN","Met",IIF([DUE_CMPLN_DATE]<=IIf([DATE_ESCALATED]<=[DESIRED_DD],[DESIRED_DD],IIf([DATE_ESCALAT

ED]>[DUE_SCHED_DATE],DateAdd("d",3,[DATE_ESCALATED]),[DUE_SCHED_DATE])),"Met","Overdue")) the problem may be parenthesis related but I can't seem to decipher it maybe I have been looking too long.

Lastly I will need to write something in my access query for when (column "K" which is FRT Met or Overdue) scores "overdue" I would like the month only from column I which is due_cmpln_date to populate.

Thanks
snipet.xls
0
Comment
Question by:jclem1
  • 2
3 Comments
 
LVL 10

Expert Comment

by:Smart_Man
ID: 22683672
pardon me i lost it, can you please start with the excel question describing what is going on then saying what are you looking for ?

giving an example cell format would be helpful along with providing the formats and the files as you did.


waiting for your reply
0
 
LVL 1

Author Comment

by:jclem1
ID: 22686183
If you open the snipet file what I need is the formulas in columns K and L coded into an access query.  The headers are FRT Met or Overdue and Overdue Closed in Month, you will notice overdue closed in month has no formula as currently it is a manual field but I would like it to populate with the "Month" value in column "I" only when column "K" scores overdue.
0
 
LVL 1

Accepted Solution

by:
jclem1 earned 0 total points
ID: 22689102
I have found the issue, Thanks.

FRT Met or Overdue: IIf(Left([WHY_MISS],2)="CN" Or Left([WHY_MISS],2)="KN","Met",IIf([DUE_CMPLN_DATE]<=IIf([DATE_ESCALATED]<=[DESIRED_DD],[DESIRED_DD],IIf([DATE_ESCALATED]>[DUE_SCHED_DATE],DateAdd("d",3,[DATE_ESCALATED]),[DUE_SCHED_DATE])),"Met","Overdue"))

and

Overdue Closed in Month: Format([DUE_CMPLN_DATE],'mmmm')
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question