473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Averaging Hourly Data by 24-HR Daily Rate

Dear Access Gurus!

I have a database that I am building for work (I work in the oil industry) that contains hourly production rates for newly producing units. The collums have all of the data for each unit by the hour including: pressure, water produced, and choke size at the hour its recorded.

I would like to find when the unit producing reaches its highest 24 hour rate. I can manually get these results in excel, but I am having to filter individually on the unit, sum up the last 24 hrs for each additional hour of data, then find the max rate and extract that exact hours information (pressure, choke, and water). I feel there has to be a way to set up a macro in access that I can run at the start of each week to pull this data.

Thanks in advance!
Rebecca
Nov 11 '13 #1
3 1696
mcupito
294 256MB
Have you tried the DMax function?

http://msdn.microsoft.com/en-us/libr...ffice.12).aspx

Functions fairly similar to the Min/Max as seen in Excel. Just make sure you filter what you need to.
Nov 11 '13 #2
NeoPa
32,556 Expert Mod 16PB
Does the daily rate that you want go from midnight to midnight? Or is it any 24 hour period, no matter when it starts?
Nov 11 '13 #3
zmbd
5,501 Expert Mod 4TB
redmoon08:

Depending on how your data is structured, you may be able to do this using various methods that may not even need to use VBA (^-^).

However, it is very difficult to offer you any advice as to a specific function or method in either Excel or Access without seeing the information and without the information that Neopa has asked for...

Can you provide us a VERY small example of your data, just enough that we can get the feel and maybe do one or two rounds of calculations?

You can use generic names like "well_1" and "loc_1" to protect your company name. If you need you can also use fake times and other data; however, even these need to reasonably close to what you would expect.

If you select the formated text and then click the [CODE/] formating button in the toolbar your data table format will hold somewhat so that row headers and records will be more easily followed.

It is prefered that such information be typed into a post (or cut and paste) instead of as an attachment because many of us are not able to open or download files from the internet while at work.

If you can show us an example of the goal you are after that will also help.

also, would you prefer to stay in Excel or move to Access? Honestly, Access may be the better choice in the long run. There is a reason Labs use databases to hold our testing results (^-^)
-z
Nov 14 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: brian kaufmann | last post by:
Hi, I had sent this earlier, and would appreciate any suggestions on this. I need to make calculations for unemployment rate for three different data sources (A,B,C) for many countries and age...
11
by: Chad | last post by:
Hi Is it possible to substitute an alternative data source (eg MySQL or SQL Server) into an existing MS-Access application?
12
by: macus | last post by:
Dear All, I have 2 cvs file like this: <spec.csv> Type,sybType,ID CASH,ON,1 FRA,1x4,2 ...
3
by: HSXWillH | last post by:
I've looked through the site and not found what I'm looking for here. I am not code-versed or anything like that so my skills are rudimentary at best. I'm using Access 03 on a Windows Vista...
0
by: Winder | last post by:
Computer Data Recovery Help 24/7 Data recovering tools and services is our focus. We will recover your data in a cost effective and efficient manner. We recover all operating systems and media....
2
bergy
by: bergy | last post by:
Background: We are collecting data and pushing it to MySQL at various intervals. Sometimes it may be every minute, other times every 15 minutes, and all ranges in between. This data is...
6
by: Dave067 | last post by:
Hi This is my first attempt at writing Python script - it's probably a bit ambitious, but there again, whatever doesn't kill you makes you stronger... ;-) I'm trying to write a script for a...
1
by: BaseballGraphs | last post by:
Hello, I am trying to divide one value from my data table with an associated ID by another value from my data table with a different ID for the same day that the value was added to the data table....
6
by: Johnny Denver | last post by:
I'm not that experienced with database design and I cannot figure out the best way to design this. I have annual hourly data (8760 values) for a million sites. The total size of the data is not a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.