Easy... but I can't figure it out

Status
Not open for further replies.

CTS Trinidad

New Member
Joined
Feb 1, 2005
Messages
6
In my cell A1 I have an Excel function that counts the number of rows that contain numeric values. [ =count(A3:A146)]

I would like my variable 'position' in VB to be attributed this value.

For example:

cell A1 = 35 [indicating that 35 rows within the A3:A146 range contain numbers]

I want my variable 'position' to become 35 or whatever value is calculated in cell A1.

i.e. position = cell(A1)

The procedure must be simple, but I don't know how I should do this?

Thanks for your help.

Louise
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Status
Not open for further replies.

Forum statistics

Threads
1,203,468
Messages
6,055,595
Members
444,800
Latest member
KarenTheManager

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