How to compare different size datasets with varying time increments

ThermalStress

New Member
Joined
Jan 1, 2018
Messages
3
Hi Chandooers,


My worksheet does this; I have a workbook which simulates the temperatures and displacements across hundreds of test points within a 2D model of an aircraft engine, at discrete time increments from the start of a flight cycle to the end. It's used for analysis and engineering design.


This involves multiple worksheets each with several large tables (e.g. about 301x250 or so, as different subassemblies seem to have different tables). In the first column of each table is time so rows correspond to each point in time, and in subsequent columns is an x or y or temp value for one of these test points.



Say I want to see the relative movements between two chosen points (A_x, Ay) and (B_x, B_y), at numerous discrete points in a flight cycle from say 0 to 12,000 seconds, I'd do this by calculating a column of (B_x - A_x) and (B_y - A_y).


The problem is this; We want to compare pairs of points which are close together in real life (from this, you could see the maximum changes in clearance, or temperature differentials at each stage in the flight). However we can't directly compare between tables in Excel as the pairs which fall in different tables will have a different number of rows. The analysis software spat time series data which seems to have different numbers of divisions, not necessarily a consistent time-step (because flights are broken into stages with different required resolution). Some tables have about 150 rows, some have about 350 for example.


Is there a way of tying up different tables (e.g. normalising Table A to have the same number of rows as Table B by automatically interpolating between the closest rows) so that comparisons can be made?


We can say that all displacements and temperatures are continuous functions with time, and we can say that all data sets start from 0 seconds and end at 12000 seconds, so theoretically I think I could do this with curve-fitting with a graph, getting coefficients from the polynomial equation and producing new points at the required time intervals (say just every 5 seconds/or map it onto Table 2 time points). But there must be a better way. Is there a formula method (preferred) or VBA to do this?


Tl;Dr How to normalise one column or table of data with varying time intervals to compare points with another column or table of data with different size and different time intervals.


e.g.
Sheet 1
Table 1
TimeDATAT1P1xDATAT1P1y DATAT1P150x DATAT1P150y
00.001-0.0040.020-0.020
50.2540.3530.053-0.050
...
120001.241-0.6641.4212.104

<tbody>
</tbody>
TimeDATAT2P151xDATAT2P151yDATAT2P350xDATAT2P350yDATAT2P351xDATA2P351y
0...
3.7...
5.2...
7.5...
......
12000...

<tbody>
</tbody>

This involves multiple worksheets each with several large tables (e.g. about 301x250 or so). In the first column of each table is time so rows correspond to each point in time, and in subsequent columns is an x or y or temp value for one of these test points.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,214,621
Messages
6,120,568
Members
448,972
Latest member
Shantanu2024

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