How to consolidate column data into averages based on row data using VBA

Elliottj2121

Board Regular
Joined
Apr 15, 2021
Messages
50
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello,

I have some VBA knowledge but I cannot figure out how to do what I am looking for. The example below is a just a very small sample, my real data set has 14 columns, Column A is a unique customer number, B is the customer
name then 12 months of data. I aml look for some help in coming up with an average for each customer based on the data in each column. For example, for Alpha Co in column C ther are two values of 6, which average to 6 (cell I2), Beta Co in the same column has three values (12,13,11), which average to 12 (cell I3). Each customer might have different amounts of values in each column. The result data also needs to be on a different sheet. Any help would be greatly appreciated! Thank you!!

1655749979760.png
 

Attachments

  • 1655749373842.png
    1655749373842.png
    28.6 KB · Views: 2

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Can be achieved with a Pivot Table. Can demo if you upload data using xl2bb. Cannot manipulate data in a picture.
 
Upvote 0
Can be achieved with a Pivot Table. Can demo if you upload data using xl2bb. Cannot manipulate data in a picture.
You know, I bet you are correct. Im not sure why i didnt think of that. Just had a new kiddo and im majorly sleep deprived.... Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,751
Messages
6,126,668
Members
449,326
Latest member
asp123

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