Last row entry populate null cell for column average calculation

Kje72120

New Member
Joined
Oct 8, 2017
Messages
1
Hi, I have a column average. But if one or more of the cells are null, I would like the last value in that respective row to represent the null cell value for the column average calculation?


I am not wanting to carry forward the previous value to populate the cell, just use the last value for the average calculation.


I do have the last value captured in another column if that can be utilized.


Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi,

So basically you want the average of a column where if a cell is blank, another column's respective value is taken instead?

If so, you could use this tweaked averageif formula

=AVERAGE(IF(original_column<>"",original_column,replacementcolumn))

This is an array formula, add with CTRL+SHIFT+ENTER

Alternatively, if you already have a helper column with last value captured, why not populate that column with all the desired values to avoid nulls and do a simple average on that?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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