How to automatically fill in an average between two points . But only fill in the average when there is a blank cell

jwalkerack

Board Regular
Joined
Jun 19, 2013
Messages
81
Hi , i have some data that i am trying to extend

i have got to the stage where i can insert a new row between all of my data sets

i would now like to be able to fill in the average between the above and below cell.

So in the example below i have time and distance . In both columns i like to be able automatically fill in the average. Is this possible through a macro or formula to automatically do this? Thanks for reading and for your help .


Sorry just a last note , for example in the blank cell for A4 , i like it to calculate the average bewteen 30 and 50 so 30+50/2 = 40 . For the time it would be 40+10/2 = 25 . But i like to fill in the all the blank cells with data above and below

Time

<tbody>
[TD="width: 64"]Distance [/TD]

[TD="align: right"]30[/TD]
[TD="align: right"]10[/TD]

[TD="align: right"]50[/TD]
[TD="align: right"]40[/TD]

[TD="align: right"]70[/TD]
[TD="align: right"]100[/TD]

[TD="align: right"]100[/TD]
[TD="align: right"]170[/TD]

[TD="align: right"]150[/TD]
[TD="align: right"]180[/TD]

</tbody>
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Assuming that A1:B11 contains the data, try the following..

1) Select cells A3:B11

2) On the ribbon, select Home > Editing > Find & Select > Go To Special > Blanks > OK

3) Then do the following...

Press =

Press (

Press the Up Arrow

Press +

Press the Down Arrow

Press )

Press /

Press 2

Press the Ctrl key down, and while the key is pressed down, press the ENTER key.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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