help on getting formula for this

miaco11

New Member
Joined
Dec 6, 2004
Messages
11
Hi! I need help to simplify this process.

Is there a shortcut formula to get the average of % difference from one row to the next row in column A without me computing the difference of per row and then taking the average after?

e.g.
A (Amount) B (difference from lower to higher)
8840 1.26%
8730 1.28%
8620 1.29%
8510 1.31%
8400

1.28% Ave difference (i need to get shortcut formula for this)

Thank you very much!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">8840</td><td style="text-align: right;;">1.26%</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">8730</td><td style="text-align: right;;">1.28%</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">8620</td><td style="text-align: right;;">1.29%</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">8510</td><td style="text-align: right;;">1.31%</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">8400</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">1.28%</td><td style=";"><---AVG DIFF</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B1</th><td style="text-align:left">=(<font color="Blue">A1-A2</font>)/A2</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C6</th><td style="text-align:left">=AVERAGE(<font color="Blue">B1:B4</font>)</td></tr></tbody></table></td></tr></table><br />

There ya go, try that
 
Last edited:
Upvote 0
thank you for the quick response.

i'm currently using win 7.

my question is how to get the average of column b without having to compute for each of the data on the row and then getting the overall average.

thanks again!
 
Upvote 0
Hi! I need help to simplify this process.

Is there a shortcut formula to get the average of % difference from one row to the next row in column A without me computing the difference of per row and then taking the average after?

e.g.
A (Amount) B (difference from lower to higher)
8840 1.26%
8730 1.28%
8620 1.29%
8510 1.31%
8400

1.28% Ave difference (i need to get shortcut formula for this)

Thank you very much!

What do you mean by the 'average difference'. I may be being dense but I don't understand what you're asking.

Thanks
Adam
 
Upvote 0
It is not possible to calculate true averages with percentages because each result is weighted depending on the size of the original data. ie What you are trying to achieve will only work if you want to work with the percentages rather than relate them to the original data.
 
Upvote 0
Perhaps one of these will work? GRD is correct - taking an average of percentages is statistically poor.

Excel Workbook
CDE
388408840
487308730
586208620
685108510
784008400
8
91.28%1.02%
Sheet1
Excel 2007
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself


Regards
Adam
 
Upvote 0
What do you mean by the 'average difference'. I may be being dense but I don't understand what you're asking.

Thanks
Adam


Sorry for the confusion.

I'm trying to get a shortcut formula for this if there is.

The average difference is the average of column b (the data for b is the result of getting the difference in % of the data in column a).

so far what i used is this formula:

=AVERAGE(((SMALL(A5:A64,2)-SMALL(A5:A64,1))/(SMALL(A5:A64,1))),((LARGE(A5:A64,1)-LARGE(A5:A64,2))/(LARGE(A5:A64,2))))

The problem with the formula above is that I'm not able to use all the data for all of the rows only the 2 last highest and lowest data.

As much as possible, I don't want to use another column to manually compute for the difference per row to a higher row of one column because I'm using a lot of columns.

Any help would be greatly appreciated. If not doable, it's ok :)
 
Upvote 0
Perhaps one of these will work? GRD is correct - taking an average of percentages is statistically poor.

Excel Workbook
CDE
388408840
487308730
586208620
685108510
784008400
8
91.28%1.02%
Sheet1
Excel 2007
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself


Regards
Adam

ah ok. now, i understand.

thank you so much for this! :D
 
Upvote 0
Or this (I think) works

<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">8840</td><td style="text-align: right;;">1.26%</td><td style="text-align: right;;">1.26%</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">8730</td><td style="text-align: right;;">1.28%</td><td style="text-align: right;;">1.27%</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">8620</td><td style="text-align: right;;">1.29%</td><td style="text-align: right;;">1.28%</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">8510</td><td style="text-align: right;;">1.31%</td><td style="text-align: right;;">1.28%</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">8400</td><td style="text-align: right;;">0.60%</td><td style="text-align: right;;">1.15%</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">8350</td><td style="text-align: right;;">0.60%</td><td style="text-align: right;;">1.06%</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">8300</td><td style="text-align: right;;">1.22%</td><td style="text-align: right;;">1.08%</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">8200</td><td style="text-align: right;;"></td><td style="text-align: right;;">#DIV/0!</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">#DIV/0!</td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B1</th><td style="text-align:left">=(<font color="Blue">A1-A2</font>)/A2</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C1</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">AVERAGE(<font color="Red">$A$1:A1-$A$2:A2</font>)/$A$2:A2</font>)/COUNT(<font color="Blue">$A$1:A1</font>)</td></tr></tbody></table></td></tr></table><br />
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

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