It probably depends on exactly how you want to approach this sort of thing, but I think the easiest approach is a basic Riemann sum from the tabulated data. If you have forgotten Riemann sums from your calculus classes:
https://calculushowto.com/problem-solving/riemann-sums/
For example, a simple left-hand rule might be implemented like this:
0) Detect and maybe extract a single loop with its up and down sections. Since your example already includes an extracted loop, I assume you already know how to do this.
1) In W2, I enter the formula to calculate the area of the first slice =T2*(S3-S2). Note the relative references, then copy/paste/fill down to the 2nd to last entry for the up part of the loop (W142). The total area is just the sum of the areas, so I enter a SUM() function in X2 =SUM(W2:W200)
2) To get the down portion, I copy W2 into Y2, then copy Y2 down to the bottom of the down data (Y145). Then copy X2 into Z2 to get the total area under the down curve.
3) Your formula for hysteresis is then a simple =(X2-Z2)/X2. I get about 13%.
Similar procedures will give your a right hand sum. If you get both left and right hand sums, trapezoid rule is simply the average of the LHS and RHS. Other variations as you deem appropriate. With tabulated data like this, that's probably how I would do it, unless you have a different method that you prefer (in which case, help us understand the method you like to use and we can help you program that method into the spreadsheet).
Edit to add: It looks like Glenn beat me to it, and went all the way to the trapezoid rule.
Bookmarks