Smoothing table data

JimMueller

Board Regular
Joined
Nov 24, 2004
Messages
83
Can this be done in Excel 2003? The enduser may not necessarily be using the same version, however.

I've got a 2D table of data which I can view as a 3D surface map. When viewed in this map, some cell values don't transition very well between adjoining cells.

The way it works right now:

1) The user defines which range of values are acceptable. Defaults are 13 +/- 0.2, and also allows scaling in smaller steps to prevent overshooting the target range.

2) External sensor values are pasted into an AFR sheet containing one table. These values are a percentage between 10 and 20.

3) The user copies in a predefined table on the VE sheet. These values are displayed as a percentage for ease of use, but really represent raw air mass.

4) The Delta table calculates what is needed to adjust the VE values to the desired value (13 in this case) and uses this value as a multiplier against the VE table which in turns populates a third table (NewVE) with suggested changes. The Delta table has 3-tier color coding based upon the ranges specificed on sheet1 to show whether it's too low, too high, or 'close enough'. These values are a percentage typically betwen 0.80 and 1.2.

Now, it's the NewVE table which I want to smooth adjoining cells. My thought process was, allow each 'smoothed' cell to be scaled up or down only the small percentage which would still keep it in the range specified on sheet1, but it needs to be smoothed on both axis.

For instance, if the 3.2x55 NewVE cell equals 67, and the corresponding Delta cell is colored green (indicating it's within range on the other scale), then take the formula result in that green cell (let's say it's 12.9). The smoothed cell result could be as low as ((12.8/12.9)*67)=66.480, or as high as ((13.2/12.9)*67)=68.558.

I'd want it to go through the entire NewVE table and build a SmoothVE table so that each smoothed cell would be in it's appropriate range(i.e., 66.48 <-> 68.558), but as smooth as possible on the surface map.

Am I making any sense? :LOL: Suggestions?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I am sure you know exactly what you are referring to being familiar with your own workbook, but consider that the average bear will not likely assimilate all your acronyms and table references.

Perhaps if you post your sheets and tables as screen shots to make things a bit less abstract, using the HTML maker link below, someone may be able to take a more knowledgeable shot at offering a relevant suggestion.

http://www.puremis.net/excel/downloads.shtml
 
Upvote 0
I tried installing HTMLMaker v2.41 & v2.42. Both generate an error 91 when attempting to add it into Excel 2003.

I just made screenshots, but now I don't see a method to upload screenshots to the forum. Looks like I need to host the files elsewhere and reference a URL. I don't have a place to host it.
 
Upvote 0
Dox sheet: The user only defines these values:

Desired AFR (Air-Fuel ratio) - defaults to 13
Delta percentage - if 1, apply 100% difference between Desired AFR and the current AFR detected by the sensor. If .75, apply 75% of the difference to not overshoot desired AFR. - defaults to 1.
Upper and lower bounds - modifiers to Desired AFR to choose the acceptable range of values. Defaults to 0.2 and -0.2, respectively.
AFR-VE Calc.xls
BCDE
1513.0   
161   
17
18
190.2   
20-0.2   
21
Dox


AFR sheet: These are values returned by the external sensor. Pasted in by the user.
AFR-VE Calc.xls
ABCDEFG
10.40.81.21.62.02.4
2150.0000.0000.0000.0000.0000.000
3200.0000.0000.0000.00013.40013.500
4250.0000.0000.00012.70012.80012.700
5300.0000.00012.80012.70012.60013.000
6350.0000.00012.90012.90012.60012.900
7400.00013.00012.70013.00012.70012.900
8450.00012.60012.50012.80012.70013.000
9500.00012.70012.50012.70012.70013.000
10550.00012.80012.60012.70012.80013.000
AFR


OldVE sheet: Volumetric efficiency sheet currently in use. Table pasted in by user.
AFR-VE Calc.xls
ABCDEF
10.40.81.21.62.0
21530.00129.67638.67938.37840.959
32031.99637.83246.00350.73053.597
42534.00044.66551.05544.39653.589
53036.00348.99647.73748.80652.440
63537.99847.16742.21847.00154.713
74039.66950.12844.23052.90858.925
84542.33742.45639.35256.49461.507
95048.83840.52445.21961.69763.130
105542.33734.14249.26564.95965.806
OldVE
 
Upvote 0
Delta table: These cells calculate how much we're going to alter the OldVE values, based upon the values in the Dox and AFR sheets.

NewPriVE sheet: Corresponding OldVE cell multiplied by the corresponding Delta cell. {receiving HTMLMaker 40036 errors - I'll post this message and review the other thread again}
 
Upvote 0
JimMueller said:
For instance, if the 3.2x55 NewVE cell equals 67...

You lost me right there Jim. Where does the 3.2x55 come in to play?

I see what you're trying to do. I just need some clarification. I'm sure this make perfect sense to you. :biggrin:
 
Upvote 0
On the NewVE (since renamed to NewPriVE) sheet, I mean the value of the column labeled 3.2 and the row labeled 55 equals 67. I snipped the screenshots narrow because I wasn't sure how they would display.
 
Upvote 0
It looks like one of the following trendlines will smooth the rows in a style I'm trying to obtain, but I need a way to implement constraints on how far each trendline point can move. Each trend does better in certain areas of the table:

- 5th or 6th order polynomial trendline
- 2 period moving average

Can I 'export' the trendline values from the line graph back into a new table? If yes, perhaps I could create trendlines of all rows and columns, export them to two new tables, and perform some sort of statistical analysis between the tables to find a median value to smooth both axis?

Or (assuming I can export the trendline values to a new table) how about this:

1. Compare the trendline values to the original values
2. If the new value is above the highest acceptable air fuel ratio (by referring to other sheets/cells - default of 13.2), then scale it down. Vice versa if it's below.

Or maybe I'm making this too hard and there's a tool which will look at the adjoining cells without creating additional tables.
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,233
Members
449,092
Latest member
SCleaveland

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top