Protection in Excel - excel

Is it possible that in excel certain fields are allowed for user input and other cells are to be protected (can't edit directly)?
Example:Suppose I have 3 column.
1. On column A (Name) user can edit directly by double click.
2. On column B (id) will auto generate unique number when a data is entered into column A. User will not be able to double click on that cell.
3. On column C (gender) a drop down list.User will not be able to double click on that cell.
Thanks in advance.

Under format cells in the right click menu, make sure that all cells in the worksheet where you want to restrict user access are locked. This option is found under under "protection".
Next select the cells you want the user to have acccess too, and enter the same dialog, but this time make sure that the cells aren't locked.
Finally, turn on sheet-protection, and in the protection menu, allow the user to select unlocked cells, but not locked cells:
Done!

Related

excel VBA question using a button? extracting values from one tab to search into another

I am stuck trying to figure out how to code this into excel. I am trying to use a button in excel to execute some actions using data. it is as follows:
Tab1 is the main page here. Here i have to select a specific number of accounts (up to 10 accounts), and a fixed date from and to. using the command button, i want a VBA code that uses the X number of accounts and the selected dates to search through Tab2, and select all the rows (in this case A:K) that has all accounts that are within the specific dates selected in tab1. so it can then be pasted into tab3. in Tab1, cells B10:B20 are the cells where the user enters the names of the account. Cells B30 is from date and B31 is to date; which are the desired dates the user wants to extract from tab2 and paste into tab3. i mean extract all the rows that contain the accounts within the selected dates.
my main issue is that the command button is kinda dynamic, meaning that the number of accounts can vary from 1 through 10.
Tab2 has all the data i want to search through and select using the command button in tab1. in tab2 account names is in column A and dates are in column D.
tab3 is where i want all of the selected data from tab2 using the command button from tab1 pasted.
please help me out with this
I have tried multiple if statements with no success.
here is the code i have so far

EXCEL Prevent range from being deleted

I want to be able to delete or add rows in Section A without moving Section B without protecting the sheet.
Is there a way to sort of 'freeze' all those columns so they won't move? so if the user just wants more columns they can just right click on a entire row to add, or delete
Help is appreciated!
Delete
Select exactly what you want to delete. Press Ctrl + - (Control and Minus Sign) or choose Delete... in a context menu. Choose Shift cells up in a pop-up menu.
Insert
Select the range to insert. Press Ctrl + + (Control and Plus Sign) or choose Insert... in a context menu. Choose Shift cells Down in a pop-up menu.
Answer to additional question
Is there a way to sort of freeze all those columns so they won't
move when the user wants more rows to add?
In general - no. But if you manage to convert the left side (A in your picture) into an Excel Table aka Excel List then you can operate with rows and columns inside of it.

How to create a dropdown clickable checklist that fills an Excell cell?

I have a single cell A2 that needs to be filled with a string that's one or more items from a given list with 20 items. We have to manually input these values in alphabetic order separated by ";".
Is there a way that we can have a dropdown list on cell A2, that we could pick these values from a checklist, and by clicking on them, they would get inserted?
If so, how can I have this and use it for several rows (A2-A366) where each row is a different data entry for another day but with the same logic?
Create a Drop-down List
To create a drop-down list in Excel, execute the following steps.
1. On the second sheet, type the items you want to appear in the drop-down list.
Note: if you don't want users to access the items on Sheet2, you can hide Sheet2. To achieve this, right click on the sheet tab of Sheet2 and click on Hide.
2. On the first sheet, select cell B1.
3. On the Data tab, in the Data Tools group, click Data Validation.
The 'Data Validation' dialog box appears.
4. In the Allow box, click List.
5. Click in the Source box and select the range A1:A3 on Sheet2.
6. Click OK.
Result:

protect data validation list content in protected excel speadsheet

I have a excel spreadsheet which I want to protect. There is a data validation list that use INDIRECT formula to display values from a table. I want the user to be able to select values from that list, but I don't want the user to be able to remove the text displayed in the cell. Can that be done without VBA?
Yes. If i understand you correctly you ensure that you have unchecked the locked box for the cells containing the data validation. Right click format cells -> protection -> uncheck box Locked. And when setting up your data validation ensure you uncheck the Ignore blank box. Then when sheet is protected user can only select from drop down list. They can't delete what is in the cell.

Is it possible to activate a cell for text entry only if a condition is met in another cell?

I'm capturing survey results into a spreadsheet and have several listboxes some with has 'OTher' as an option in the list. if Other is selected I want to make the next cell in the row active for text entry, otherwise it's inactive. How can I do this?
You can try this:
Go to the Data ribbon and select Data Validation from the Data Tools.
At settings you choose custom and use the following formula:
=IF(A2="Others", ISTEXT(A1),1)
Please note, that you have to change A1 and A2 according to your needs.
You can even specify an Input Message and an Error Message, if some one doesn't enter the correct format.

Resources