Hello,
Would any of you happen to know the code for finding the average of responses to a survey? For example, there are 6 questions. Normally, I'd sum the 6 scores and divide it by 6. However, some respondents may only answer 5 questions. In that case, I'd take the sum of 5 and divide it by 5. My problem is that the DatStat program I'm using only allows for one calculation. So, I'm guessing there's an 'if' statement needed somewhere in my coding. Could you please advise?
Thank-you,
083102
1 943 JosAH 11,448
Recognized Expert MVP
Hello,
Would any of you happen to know the code for finding the average of responses to a survey? For example, there are 6 questions. Normally, I'd sum the 6 scores and divide it by 6. However, some respondents may only answer 5 questions. In that case, I'd take the sum of 5 and divide it by 5. My problem is that the DatStat program I'm using only allows for one calculation. So, I'm guessing there's an 'if' statement needed somewhere in my coding. Could you please advise?
Thank-you,
083102
What does the API of that DatStat class/package/framework/whatever look like?
kind regards,
Jos
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Phil Watkins |
last post by:
I am a novice programer in Vb and I am having a major
brain ache finding out which item has been selected within
a list view and then either deleting that item or editing
them. My searching so far seems to indicate the use of
the "contains" command but I cannot find a helpfull
reference.
Any help greatly apreciated as I am workin on the second
bottle of nurophen
|
by: Mark Haase |
last post by:
Hey All--
I'm rusty on my JavaScript but I'm pulling it back out to do a PHP/MySQL
database application. I'm doing all the validation in PHP, but I'm using
JavaScript to show/hide questions which depend on the responses to other
questions, e.g. "If you answered yes to the previous question, then what
time of day will you need your service activated?"
One aspect of this is needing to be able to decide which radio button in
certain...
|
by: Jeff Blee |
last post by:
I am hoping someone can help me. I am making a Access 97 app for a
person and have run up against a problem to do with MS Graph. There is
a table that has a number of data elements and a date field and
entries are entered each month.
A graph is required that has three of the data elements represented
basically on the y axis and time as months along the x axis. So for
each month there is a group of three columns representing the data...
|
by: Kat |
last post by:
I have a report in Access that calculates the average of a column of
numbers (C3) . I want to add the stipulation that if C3's totals are
zero, to not print anything in that field. The current formula is "
=Avg()"
I want to add the condition that if the fields are '0' then print
nothing in the report.
The report also averages C1, C2 and C3 (=Avg(++)/3). I
want to add that if C3 is blank calculate average on only C1 & C2.
Any...
|
by: spivee |
last post by:
I'm having an odd type of issue. I want to be able to pass an element
name in my javascript event and find the location of the element, be it
a div, span, img whatever, specifically the top and left attributes.
I have defined my element like so...
### .css file...
#mydiv {
position:absolute;
| |
by: ken.ditto |
last post by:
I have a database that stores data collected from a variety of
instruments (pressure, temperature, flow rate, etc.) everytime there
is a 1% change in the value.
The Project Manager wants to be able to take the data and generate a
report that shows a series of timed averages across a larger time
span. For example, over an eight hour time range, he wants the
instrument averages in five minute blocks.
00:00:01 - 00:05:00 Press1avg01 |...
|
by: =?Utf-8?B?YjF1Y2VyZWU=?= |
last post by:
Hi, still very new to programming but am a little stumped by how to do this
idea i have.
I need to make a moving average which takes every nth value in a data series
to build a running total which can then be divided by the length of the
moving average. The data series will be gaining a new value every x amount of
time t so the average has to be made from the last added value. And i also
need a way to use this same moving average but...
|
by: stevewy |
last post by:
I'm looking to manipulate/check the state of various checkboxes and
radios in a form. Because I don't want to access all of the
checkboxes in the form, only a specific section, I am trying to narrow
down the list of elements to check. I thought I could place those
elements within a named DIV or a table, and then reference that DIV or
table by its ID. But it's not working.
Say for instance I wanted Javascript to issue an alert (just...
|
by: lildiapaz |
last post by:
Hi,
I have wrote two queries, one to find the average for one date, and the second query to find the average for another date. And I stored the results of the query to a local string object. Is there anyway to compare the two averages by getting the difference between the two.
example query
String myQuery = "" +
"select name, age, date, avg(count) from product where date=interval -7 Day + '2001-08-13' " +
" group by name ";
|
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: 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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: 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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |