Moving data from userform to a cell

MrSudsy224

New Member
Joined
Oct 12, 2020
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
I am new to VBA and have an issue with transferring answers from a userform to the spreadsheet. 1 to 3 employees can share equally the commission earned on a job. There are 3 fields on the userform to enter their names. I can get the input for each of these fields moved into their respective cells, I want to use the CountA function to return the number of staff that is entitled to the commission (1, 2, or 3). The problem is the function returns the number 3 regardless of how many of the 3 cells actually have names so apparently the cells that have no name are still not empty and thus added to the count. Is there a way to make sure that the cells are empty if no name is entered I. The form?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,214,653
Messages
6,120,750
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