ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need help: how to semi-automatically replace an empty value in a row with a row average? (https://www.excelbanter.com/excel-programming/341592-need-help-how-semi-automatically-replace-empty-value-row-row-average.html)

Fred[_25_]

Need help: how to semi-automatically replace an empty value in a row with a row average?
 
I have an excel data file which has about 50 columns and more than 1000
rows, in some rows, values are missing at different columns. I need to
replace those empty values in each row with a row average. How do I do
that?
Thanks,
Fred


Bernie Deitrick

Need help: how to semi-automatically replace an empty value in a row with a row average?
 
Fred,

Insert a new column A, and in cell A2 (Assuming your numbers start in row 2) enter the formula

=Average(B2:IV2)

and copy down to match your 1000+ rows.

Then select your data table in columns B through your last column, use Edit / Go To... Blanks,
press OK, then type =indirect("A" & ROW()) and then press Ctrl-Enter. Then select columns B through
last column again, copy, then pastespecial values, delete your new column A, and you're done.

HTH,
Bernie
MS Excel MVP


"Fred" wrote in message
oups.com...
I have an excel data file which has about 50 columns and more than 1000
rows, in some rows, values are missing at different columns. I need to
replace those empty values in each row with a row average. How do I do
that?
Thanks,
Fred





All times are GMT +1. The time now is 08:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com