Need Help With Form

Yellowstone

New Member
Joined
Aug 11, 2010
Messages
1
I am trying to create a form on an Excel worksheet that already has data on it. I want to be able to enter a range designated by the user that will calculate a percentage of filled cells (letters not numbers) to empty cells in the given range.
I was trying a COUNTA and COUNTBLANK type code but first time using a form and having trouble.

Example: If I have Data throughout B243:B394 and the User enters B256 and B301 I would like the form to calculate the percentage of cells with data in it to ones that are empty.

Will take any help available.
Thanks.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
This might not be the prettiest of all but u could use a for next structure that will count each cell in the specified range that is not empty. Then divide the counted number by the total number of cells. Is this what you mean?


Something like this:
Dim acell as range
Dim counter1 as integer
For each acell in range
if acell.value <> ""
counter = counter + 1
end if
counter2 = counter2 + 1
Next acell
 
Upvote 0

Forum statistics

Threads
1,223,731
Messages
6,174,178
Members
452,550
Latest member
southernsquid2

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