I've got an Excel formula that calculates the total business hours that a help desk ticket is open. As one would expect, it factors out holidays and non-work hours. What would be the corresponding formula in Access? - =IF(AND(INT(StartDT)=INT(EndDt),NOT(ISNA(MATCH(INT(StartDT),HolidayList,0)))),0,ABS(IF(INT(StartDT)=INT(EndDt),ROUND(24*(EndDt-StartDT),2),
-
(24*(DayEnd-DayStart)*
-
(MAX(NETWORKDAYS(StartDT+1,EndDt-1,HolidayList),0)+
-
INT(24*(((EndDt-INT(EndDt))-
-
(StartDT-INT(StartDT)))+(DayEnd-DayStart))/(24*(DayEnd-DayStart))))+
-
MOD(ROUND(((24*(EndDt-INT(EndDt)))-24*DayStart)+
-
(24*DayEnd-(24*(StartDT-INT(StartDT)))),2),
-
ROUND((24*(DayEnd-DayStart)),2))))))
-
Thanks!
3 4258
I've got an Excel formula that calculates the total business hours that a help desk ticket is open. As one would expect, it factors out holidays and non-work hours. What would be the corresponding formula in Access?
=IF(AND(INT(Sta rtDT)=INT(EndDt ),NOT(ISNA(MATC H(INT(StartDT), HolidayList,0)) )),0,ABS(IF(INT (StartDT)=INT(E ndDt),ROUND(24* (EndDt-StartDT),2),
(24*(DayEnd-DayStart)*
(MAX(NETWORKDAY S(StartDT+1,End Dt-1,HolidayList), 0)+
INT(24*(((EndDt-INT(EndDt))-
(StartDT-INT(StartDT)))+ (DayEnd-DayStart))/(24*(DayEnd-DayStart))))+
MOD(ROUND(((24* (EndDt-INT(EndDt)))-24*DayStart)+
(24*DayEnd-(24*(StartDT-INT(StartDT)))) ,2),
ROUND((24*(DayE nd-DayStart)),2))) )))
Thanks!
Hi Skiddle
Put simply....look at the DateDiff function in Access amongst others ( Datepart function, DAggregate Functions...loo k them up in help) to see if it assists you as a startpoint. You can then at least begin to think of how you might rebuild it in Access. As is, there is not a specific builti in function that converts a rather complex looking custom formulae directly and specifically, if that is what you was hoping for.
Jim
ADezii 8,834
Recognized Expert Expert
I've got an Excel formula that calculates the total business hours that a help desk ticket is open. As one would expect, it factors out holidays and non-work hours. What would be the corresponding formula in Access?
=IF(AND(INT(Sta rtDT)=INT(EndDt ),NOT(ISNA(MATC H(INT(StartDT), HolidayList,0)) )),0,ABS(IF(INT (StartDT)=INT(E ndDt),ROUND(24* (EndDt-StartDT),2),
(24*(DayEnd-DayStart)*
(MAX(NETWORKDAY S(StartDT+1,End Dt-1,HolidayList), 0)+
INT(24*(((EndDt-INT(EndDt))-
(StartDT-INT(StartDT)))+ (DayEnd-DayStart))/(24*(DayEnd-DayStart))))+
MOD(ROUND(((24* (EndDt-INT(EndDt)))-24*DayStart)+
(24*DayEnd-(24*(StartDT-INT(StartDT)))) ,2),
ROUND((24*(DayE nd-DayStart)),2))) )))
Thanks!
You may be able to utilize the Excel Formula
ADezii 8,834
Recognized Expert Expert
I've got an Excel formula that calculates the total business hours that a help desk ticket is open. As one would expect, it factors out holidays and non-work hours. What would be the corresponding formula in Access?
=IF(AND(INT(Sta rtDT)=INT(EndDt ),NOT(ISNA(MATC H(INT(StartDT), HolidayList,0)) )),0,ABS(IF(INT (StartDT)=INT(E ndDt),ROUND(24* (EndDt-StartDT),2),
(24*(DayEnd-DayStart)*
(MAX(NETWORKDAY S(StartDT+1,End Dt-1,HolidayList), 0)+
INT(24*(((EndDt-INT(EndDt))-
(StartDT-INT(StartDT)))+ (DayEnd-DayStart))/(24*(DayEnd-DayStart))))+
MOD(ROUND(((24* (EndDt-INT(EndDt)))-24*DayStart)+
(24*DayEnd-(24*(StartDT-INT(StartDT)))) ,2),
ROUND((24*(DayE nd-DayStart)),2))) )))
Thanks!
You may be able to utilize the Excel Formula within the context of Excel and pass to it Access data via Automation code. This may/may not be difficult depending on the specifics.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Carlos Magalhaes |
last post by:
Hey All,
I am doing some excel automation using the excel COM. I can do most of
the functions and its working well until I come across a formula.
I can run a formula and insert the formula value into a cell. BUT this
is where it comes "complex".
|
by: David_from_Chicago |
last post by:
What I am trying to do is to simulate the LINEST functionality from
Excel in Access through VBA.
When I use LinEst in Excel I can get back five statistical results.
Here are is the formula array I use:
Slope {=LINEST(H72:H94,I72:I94,TRUE,TRUE)}
SE {=LINEST(H72:H94,I72:I94,TRUE,TRUE)}
RSquared {=LINEST(H72:H94,I72:I94,TRUE,TRUE)}
F-Stat {=LINEST(H72:H94,I72:I94,TRUE,TRUE)}
|
by: toffee |
last post by:
Hi all,
I got a pre-formatted spreadsheet. would it be possible using js to copy the
data from a table on the current webpage, open the spreadsheet and paste the
content ?
if so, anyone got any links or pointers?
i've already tried google - but all i get is ActiveX methods which work in a
very few cases.
|
by: alphaomega3 |
last post by:
I have a formula used in Excel that I am trying to convert for use in a query. the original formula is:
=IF(AND(#REF!>=0,#REF!<=66800),(#REF!*((0.7-1)/(66800-0))+1),IF(AND(#REF!>66800,#REF!<=500000),((#REF!*((0.4-0.7)/(308000-66800))+0.783085)),0))
I have attempted the following but keep getting syntax errors..... tell me what I am doing wrong so that I can understand how to fix it and to perform this type of conversion on other...
|
by: CodeMonkey775 |
last post by:
I'm having problems passing a variable to a method which is executed and compiled using CodeDom. The situation is I have a List<CellData> with cells, each containing a formula (like Excel). I am trying to pass this list to an executable section of code which is compiled during run-time. The formulas are calculated in CodeDom and the result is returned on the same List<CellData> object I passed.
The user-defined class which holds the cell data...
| |
by: sejal17 |
last post by:
hello
Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store that multiple worksheet data in different table.How can i do it.Below is my xml file.
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
...
|
by: sejal17 |
last post by:
hello
Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store that multiple worksheet data in different table.How can i do it.Below is my xml file.
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"...
|
by: welshkaiboy |
last post by:
Due to the size of the data I have to manipulate I need to apply a excel formula in access which determines date of manufacture from a serial number
716001 so I use =VALUE(DATE(VALUE(MID(A1,3,1))+2000,1,1))+VALUE(MID(A1,4,3))-1 which gives 1/1/2006
How can I get this formula to work in access I know that the field name replaces the cell reference. I am just finding my feet in access and struggling to get this to work. I don’t really want...
|
by: rtilson |
last post by:
I am not sure why excel and access use the same method in formula. I am not access expert but been trying to figure it out.
Here is the excel formula that I would like to use in access expression
=ROUND((A2-5148000)*1.000440935+48000,IF(MOD(A2,1)=0,0,3))
I have tried using
is the coorinate
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |