ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Average data from different spreadsheets (https://www.excelbanter.com/excel-programming/357518-average-data-different-spreadsheets.html)

[email protected]

Average data from different spreadsheets
 
need a quick formulae help from you in excel.





This is what am trying to do.



I have 2 sheets (A and B ) . From sheet B am taking the average of (A1:
B3) and want it in the A1 cell of sheet A. To put it concisely



sheet A



A1 Average (SheetB!(A1:B3))
B1 Average( SheetB!(C1:D3))



A2 Average (SheetB!(A4:B6))
B2 Average( SheetB!(C4:D6)) and so on.





sheet B has (60*48) cells



I want a common formulae or macro to do this but not sure how to go
about using offset or index functions for the same.



Will be helpful if you have some thoughts on this.


Greg Wilson

Average data from different spreadsheets
 
Try:

=AVERAGE(OFFSET(INDIRECT("B!" & ADDRESS(3*ROW()-2, 2*COLUMN() - 1)), 0, 0,
3, 2))

- where "B" is the actual sheet name.

Best regards,
Greg

" wrote:

need a quick formulae help from you in excel.





This is what am trying to do.



I have 2 sheets (A and B ) . From sheet B am taking the average of (A1:
B3) and want it in the A1 cell of sheet A. To put it concisely



sheet A



A1 Average (SheetB!(A1:B3))
B1 Average( SheetB!(C1:D3))



A2 Average (SheetB!(A4:B6))
B2 Average( SheetB!(C4:D6)) and so on.





sheet B has (60*48) cells



I want a common formulae or macro to do this but not sure how to go
about using offset or index functions for the same.



Will be helpful if you have some thoughts on this.




All times are GMT +1. The time now is 07:17 PM.

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