VBA code to click very cell in a column

Javi09

New Member
Joined
Nov 2, 2022
Messages
16
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
Platform
  1. Windows
I have over 2000 columns with 5 rows, one of the rows has a number and on another row it has either a,b,c,d,e. I want to get the average depending if their row contains a,b,c.. So i could end up with the averages from the ones with a and averages of b, etc. I have a code but it gives me #DV/0! since its not taking the number as a number, the only way for some reason if click the cell of the number and it turns it into a number but I don't want to click though the whole column one by one. Thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Write 1 in a cell and copy it, then select all the cells/range you need (at least the ones that throw #DIV/0!) and then use Paste Special, select Multiply and apply. You can delete the 1.
 
Upvote 0
Thanks for the feedback, glad having been of some help.
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,747
Members
448,989
Latest member
mariah3

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