Friday, October 26, 2018

Find and remove duplicates values in excel sheets

Find and remove duplicates

Sometimes duplicate data is useful, sometimes it just makes it harder to understand your data. Use conditional formatting to find and highlight duplicate data. That way you can review the duplicates and decide if you want to remove them.
1.   Select the cells you want to check for duplicates.
Note: Excel can’t highlight duplicates in the Values area of a PivotTable report.
2.   Click Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.
Highlight cell rules
3.   In the box next to values with, pick the formatting you want to apply to the duplicate values, and then click OK.
Duplicate Values dialog box

Remove duplicate values

When you use the Remove Duplicates feature, the duplicate data will be permanently deleted. Before you delete the duplicates, it’s a good idea to copy the original data to another worksheet so you don’t accidentally lose any information.
1.   Select the range of cells that has duplicate values you want to remove.
Tip: Remove any outlines or subtotals from your data before trying to remove duplicates.
2.   Click Data > Remove Duplicates, and then UnderColumns, check or uncheck the columns where you want to remove the duplicates.
Remove Duplicates
For example, in this worksheet, the January column has price information I want to keep.
Duplicate values highlighted
So, I unchecked January in the Remove Duplicates box.
Remove duplicates dialog box
3.   Click OK.




Temple of the Tooth Relic

Temple of the Tooth Relic 


Sri Dalada Maligawa or the Temple of the Sacred Tooth Relic is a Buddhist temple in the city of KandySri Lanka. It is located in the royal palace complex of the former Kingdom of Kandy, which houses the relic of the tooth of the Buddha. Since ancient times, the relic has played an important role in local politics because it is believed that whoever holds the relic holds the governance of the country. Kandy was the last capital of the Sri Lankan kings and is a World Heritage Site mainly due to the temple.
Temple of the Sacred Tooth Relic

  • ශ්‍රී දළදා මාළිගාව
  •  
  • தலதா மாளிகை
Zahntempel Kandy.jpg
Temple of the Sacred Tooth Relic, a World Heritage Site in Kandy
Basic information
LocationKandy
Geographic coordinates7°17′38″N 80°38′19″E
AffiliationBuddhism
CountrySri Lanka
Websitehttp://www.sridaladamaligawa.lk
Architectural description
FounderVimaladharmasuriya I of Kandy
Completed1595
TypeCultural
Criteria(iv)(vi)
Designated1988
Reference no.450
Bhikkhus of the two chapters of Malwatte and Asgiriya conduct daily worship in the inner chamber of the temple. Rituals are performed three times daily: at dawn, at noon and in the evenings. On Wednesdays there is a symbolic bathing of the relic with an herbal preparation made from scented water and fragrant flowers called Nanumura Mangallaya. This holy water is believed to contain healing powers and is distributed among those present.
The temple sustained damage from bombings by Janatha Vimukthi Peramuna in 1989 and by Liberation Tigers of Tamil Eelamin 1998 but was fully restored each time.[1]


Lock or unlock specific areas of a protected Excel worksheet

Lock or unlock specific areas of a protected worksheet

Protect the worksheet

Next, select the actions that users should be allowed to take on the sheet, such as insert or delete columns or rows, edit objects, sort, or use AutoFilter, to name a few. Additionally, you can also specify a password to lock your worksheet. A password prevents other people from removing the worksheet protection—it needs to be entered to unprotect the sheet.
Given below are the steps to protect your sheet.
1.   On the Review tab, click Protect Sheet.
The Changes group on the Review tab
2.   In the Allow all users of this worksheet to list, select the elements you want people to be able to change.
The Protect Sheet dialog box

By default, protecting a worksheet locks all cells so none of them are editable. To enable some cell editing, while leaving other cells locked, it's possible to unlock all the cells. You can lock only specific cells and ranges before you protect the worksheet and, optionally, enable specific users to edit only in specific ranges of a protected sheet.

Lock only specific cells and ranges in a protected worksheet

 

Follow these steps:
1.    If the worksheet is protected, do the following:
a.    On the Review tab, click Unprotect Sheet (in theChanges group).
Unprotect Sheet
Click the Protect Sheet button to Unprotect Sheetwhen a worksheet is protected.
b.    If prompted, enter the password to unprotect the worksheet.
2.    Select the whole worksheet by clicking the Select All button.
Select All button
3.    On the Home tab, click the Format Cell Fontpopup launcher. You can also press Ctrl+Shift+F or Ctrl+1.
Format Cells dialog box launcher
4.    In the Format Cells popup, in the Protection tab, uncheck the Locked box and then click OK.
This unlocks all the cells on the worksheet when you protect the worksheet. Now, you can choose the cells you specifically want to lock.
5.    On the worksheet, select just the cells that you want to lock.
6.    Bring up the Format Cells popup window again (Ctrl+Shift+F).
7.    This time, on the Protection tab, check the Lockedbox and then click OK.
8.    On the Review tab, click Protect Sheet.
Protect Sheet
9.    In the Allow all users of this worksheet to list, choose the elements that you want users to be able to change.
More information about worksheet elements
Clear this check box
To prevent users from
Select locked cells
Moving the pointer to cells for which the Locked check box is selected on the Protection tab of the Format Cells dialog box. By default, users are allowed to select locked cells.
Select unlocked cells
Moving the pointer to cells for which the Locked check box is cleared on the Protection tab of the Format Cells dialog box. By default, users can select unlocked cells, and they can press the TAB key to move between the unlocked cells on a protected worksheet.
Format cells
Changing any of the options in the Format Cells or Conditional Formatting dialog boxes. If you applied conditional formats before you protected the worksheet, the formatting continues to change when a user enters a value that satisfies a different condition.
Format columns
Using any of the column formatting commands, including changing column width or hiding columns (Home tab, Cells group,Format button).
Format rows
Using any of the row formatting commands, including changing row height or hiding rows (Hometab, Cells group, Format button).
Insert columns
Inserting columns.
Insert rows
Inserting rows.
Insert hyperlinks
Inserting new hyperlinks, even in unlocked cells.
Delete columns
Deleting columns.
If Delete columns is protected and Insert columns is not also protected, a user can insert columns that he or she cannot delete.
Delete rows
Deleting rows.
If Delete rows is protected andInsert rows is not also protected, a user can insert rows that he or she cannot delete.
Sort
Using any commands to sort data (Data tab, Sort & Filtergroup).
Users can't sort ranges that contain locked cells on a protected worksheet, regardless of this setting.
Use AutoFilter
Using the drop-down arrows to change the filter on ranges when AutoFilters are applied.
Users cannot apply or remove AutoFilters on a protected worksheet, regardless of this setting.
Use PivotTable reports
Formatting, changing the layout, refreshing, or otherwise modifying PivotTable reports, or creating new reports.
Edit objects
Doing any of the following:
o    Making changes to graphic objects including maps, embedded charts, shapes, text boxes, and controls that you did not unlock before you protected the worksheet. For example, if a worksheet has a button that runs a macro, you can click the button to run the macro, but you cannot delete the button.
o    Making any changes, such as formatting, to an embedded chart. The chart continues to be updated when you change its source data.
o    Adding or editing comments.
Edit scenarios
Viewing scenarios that you have hidden, making changes to scenarios that you have prevented changes to, and deleting these scenarios. Users can change the values in the changing cells, if the cells are not protected, and add new scenarios.
Chart sheet elements
Select this check box
To prevent users from
Contents
Making changes to items that are part of the chart, such as data series, axes, and legends. The chart continues to reflect changes made to its source data.
Objects
Making changes to graphic objects — including shapes, text boxes, and controls — unless you unlock the objects before you protect the chart sheet.
10.In the Password to unprotect sheet box, type a password for the sheet, click OK, and then retype the password to confirm it.
o    The password is optional. If you do not supply a password, any user can unprotect the sheet and change the protected elements.
o    Make sure that you choose a password that is easy to remember, because if you lose the password, you won't have access to the protected elements on the worksheet.

Unlock ranges on a protected worksheet for users to edit

 

To give specific users permission to edit ranges in a protected worksheet, your computer must be running Microsoft Windows XP or later, and your computer must be in a domain. Instead of using permissions that require a domain, you can also specify a password for a range.
1.    Select the worksheet that you want to protect.
2.    On the Review tab, in the Changes group, clickAllow Users to Edit Ranges.
Allow Users to Edit Changes
This command is available only when the worksheet is not protected.
3.    Do one of the following:
o    To add a new editable range, click New.
o    To modify an existing editable range, select it in the Ranges unlocked by a password when sheet is protected box, and then click Modify.
o    To delete an editable range, select it in the Ranges unlocked by a password when sheet is protectedbox, and then click Delete.
4.    In the Title box, type the name for the range that you want to unlock.
5.    In the Refers to cells box, type an equal sign (=), and then type the reference of the range that you want to unlock.
You can also click the Collapse Dialog button, select the range in the worksheet, and then click theCollapse Dialog button again to return to the dialog box.
6.    For password access, in the Range password box, type a password that allows access to the range.
Specifying a password is optional when you plan to use access permissions. Using a password allows you to see user credentials of any authorized person who edits the range.
7.    For access permissions, click Permissions, and then click Add.
8.    In the Enter the object names to select (examples) box, type the names of the users who you want to be able to edit the ranges.
To see how user names should be entered, clickexamples. To verify that the names are correct, clickCheck Names.
9.    Click OK.
10.To specify the type of permission for the user who you selected, in the Permissions box, select or clear the Allow or Deny check boxes, and then click Apply.
11.Click OK two times.
If prompted for a password, type the password that you specified.
12.In the Allow Users to Edit Ranges dialog box, clickProtect Sheet.
13.In the Allow all users of this worksheet to list, select the elements that you want users to be able to change.
More information about the worksheet elements
Clear this check box
To prevent users from
Select locked cells
Moving the pointer to cells for which the Locked check box is selected on the Protection tab of the Format Cells dialog box. By default, users are allowed to select locked cells.
Select unlocked cells
Moving the pointer to cells for which the Locked check box is cleared on the Protection tab of the Format Cells dialog box. By default, users can select unlocked cells, and they can press the TAB key to move between the unlocked cells on a protected worksheet.
Format cells
Changing any of the options in the Format Cells or Conditional Formatting dialog boxes. If you applied conditional formats before you protected the worksheet, the formatting continues to change when a user enters a value that satisfies a different condition.
Format columns
Using any of the column formatting commands, including changing column width or hiding columns (Home tab, Cells group,Format button).
Format rows
Using any of the row formatting commands, including changing row height or hiding rows (Hometab, Cells group, Format button).
Insert columns
Inserting columns.
Insert rows
Inserting rows.
Insert hyperlinks
Inserting new hyperlinks, even in unlocked cells.
Delete columns
Deleting columns.
If Delete columns is protected and Insert columns is not also protected, a user can insert columns that he or she cannot delete.
Delete rows
Deleting rows.
If Delete rows is protected andInsert rows is not also protected, a user can insert rows that he or she cannot delete.
Sort
Using any commands to sort data (Data tab, Sort & Filtergroup).
Users can't sort ranges that contain locked cells on a protected worksheet, regardless of this setting.
Use AutoFilter
Using the drop-down arrows to change the filter on ranges when AutoFilters are applied.
Users cannot apply or remove AutoFilters on a protected worksheet, regardless of this setting.
Use PivotTable reports
Formatting, changing the layout, refreshing, or otherwise modifying PivotTable reports, or creating new reports.
Edit objects
Doing any of the following:
o    Making changes to graphic objects including maps, embedded charts, shapes, text boxes, and controls that you did not unlock before you protected the worksheet. For example, if a worksheet has a button that runs a macro, you can click the button to run the macro, but you cannot delete the button.
o    Making any changes, such as formatting, to an embedded chart. The chart continues to be updated when you change its source data.
o    Adding or editing comments.
Edit scenarios
Viewing scenarios that you have hidden, making changes to scenarios that you have prevented changes to, and deleting these scenarios. Users can change the values in the changing cells, if the cells are not protected, and add new scenarios.
Chart sheet elements
Select this check box
To prevent users from
Contents
Making changes to items that are part of the chart, such as data series, axes, and legends. The chart continues to reflect changes made to its source data.
Objects
Making changes to graphic objects — including shapes, text boxes, and controls — unless you unlock the objects before you protect the chart sheet.
14.In the Password to unprotect sheet box, type a password, click OK, and then retype the password to confirm it.
  • The password is optional. If you do not supply a password, then any user can unprotect the worksheet and change the protected elements.
  • Ensure that you choose a password that you can remember. If you lose the password, you will be unable to access to the protected elements on the worksheet.
  • If a cell belongs to more than one range, users who are authorized to edit any of those ranges can edit the cell.
  • If a user tries to edit multiple cells at once and is authorized to edit some but not all of those cells, the user will be prompted to edit the cells one-by-one.

Need more help?

You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.