473,394 Members | 1,722 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,394 software developers and data experts.

Formula required

How would I go about creating a formula to fill in the unknown values??

Is this possible using VB for Access.

100000 = 850
75000 = ???
50000 = 700
33000 = ???
10000 = 400
8200 = ???
1000 = 70
345 = ???
200 = 25

I want to add a text box to a form - enter a value and press calculate.

Regards

Gary Hanley

Nov 13 '05 #1
3 1738
On 26 Oct 2005 00:08:31 -0700, "ghanley" <gh*****@hcsfixit.com> wrote:

That depends. I look at this as a Math problem, with some X,Y values,
and some additional X-values where we want to know the Y-value.
Typically you'd want to do some sort of interpolation. Perhaps
straight lines between the known points (linear interpolation),
perhaps a smooth line (e.g. a cubic spline).

Google will have a ton of info on these keywords.

-Tom.
How would I go about creating a formula to fill in the unknown values??

Is this possible using VB for Access.

100000 = 850
75000 = ???
50000 = 700
33000 = ???
10000 = 400
8200 = ???
1000 = 70
345 = ???
200 = 25

I want to add a text box to a form - enter a value and press calculate.

Regards

Gary Hanley


Nov 13 '05 #2
"Tom van Stiphout" wrote
That depends. I look at this as a Math
problem, with some X,Y values, and
some additional X-values where we want
to know the Y-value. Typically you'd want
to do some sort of interpolation. Perhaps
straight lines between the known points
(linear interpolation), perhaps a smooth
line (e.g. a cubic spline).


But, without more information on what kind of data it is and/or how it is
derived, we couldn't suggest what method would be appropriate. I remember
taking a numerical analysis class in which, to point out the fallacy of
assuming the missing values could be calculated with whatever method we were
learning, the teacher gave a similar list with some missing values. It
turned out that no one's suggested method would work... it was a list of
room numbers in the building and the number of chairs/seats in the room.

And, as the missing numbers were associated with things like broom closets,
other janitorial rooms, and storage rooms (which contained neither seats nor
chairs) and one storage room that was stacked, jammed-full, floor to ceiling
with extra folding chairs (which contained all the extra chairs for the
entire building)... there was no "method" that could be used to _calculate_
them.

If the ghanley's teacher gave this as an assignment, ghanley had best go ask
for more information. If it is some real-world situation, then ghanley
should carefully consider if it is a problem that lends itself to a
calculated solution.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #3
On Thu, 27 Oct 2005 03:36:33 GMT, "Larry Linson" <bo*****@localhost.not> wrote:
"Tom van Stiphout" wrote
That depends. I look at this as a Math
problem, with some X,Y values, and
some additional X-values where we want
to know the Y-value. Typically you'd want
to do some sort of interpolation. Perhaps
straight lines between the known points
(linear interpolation), perhaps a smooth
line (e.g. a cubic spline).


But, without more information on what kind of data it is and/or how it is
derived, we couldn't suggest what method would be appropriate. I remember
taking a numerical analysis class in which, to point out the fallacy of
assuming the missing values could be calculated with whatever method we were
learning, the teacher gave a similar list with some missing values. It
turned out that no one's suggested method would work... it was a list of
room numbers in the building and the number of chairs/seats in the room.

And, as the missing numbers were associated with things like broom closets,
other janitorial rooms, and storage rooms (which contained neither seats nor
chairs) and one storage room that was stacked, jammed-full, floor to ceiling
with extra folding chairs (which contained all the extra chairs for the
entire building)... there was no "method" that could be used to _calculate_
them.

If the ghanley's teacher gave this as an assignment, ghanley had best go ask
for more information. If it is some real-world situation, then ghanley
should carefully consider if it is a problem that lends itself to a
calculated solution.

Larry Linson
Microsoft Access MVP

Larry is exactly right. Thers is no reasonable relationship between X and its
corresponding value of Y. A least spline that passes thru all the data points
looks weird. That said, it is possible to write a funftion generator that
doesn't look too bad and which will pass thru all of the given data points.
However, the calculated values of Y for values of X between the original data
points is pure fiction. I believe you have coppied the data incorrectly or
your instructor has thrown you a mickey.

75000 ~~ 806.2-----
33000 ~~ 592.0-----
8200 ~~ 382.7-----
345 ~~ 33.1-----

Chuck
--
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: B. Broadwell | last post by:
I have a report created in Crystal Reports 8 that I'm attempting to use in a ..NET application. I have the following formula that works in the Crystal 8 designer and when the report is run using...
2
by: alex | last post by:
I need a more advanced formula than just an average for calculating items rating. I have: raitng value is on scale 1 to 10. s - sum of all ratings for an item n - number of rates (votes)
7
by: Helen | last post by:
vb .net 200 crystal reports Oracl Acces Hi, I have all selection formula results needed from the main crystal report, called in the vb form (Oracle db) I now need to build in the logic in...
1
by: sal | last post by:
Greets All, I'm having a little trouble in creating dynamic arrays I've had some help in getting this formula but I'm not sure how to make the array dynamic enough in vb.net to include Cn.....Xn...
0
by: Orange2p | last post by:
Hi, I imported a table from Paradox to SQL Server and I am using this table for a report generation. That table in paradox contains a field "Entry" which is of type Time. When this table was...
0
by: lina | last post by:
Hi, In acc2000, can i export a tbl/qry to xls while having formula written in the table? In my sample table the Excel didn't recognize the data as formula (=C2+D2). But, when in Excel, i enter the...
8
by: teddarr | last post by:
I'm having trouble getting a mathmatical formula to work in my code. I am supposed to write a program in java that calculates the ending balance each month. The user is supposed to input the...
9
by: deaconj999 | last post by:
Hi All, I am using this unbound to add the frequency to a date entered =IIf(="HIGH - annual",+365,IIf(="MED - 3 yearly",+1095,IIf(="LOW - 5 yearly",+1825,IIf(="N/ A",Date())))) but would...
0
by: gkinu | last post by:
Crystal Report for Visual Studio.NET 2003. I have a formula that brings an error " .. A number is required here ... ". See the code snippet below which i have simplified. In the actual formula,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.