Posts

Showing posts from June, 2018

Difference Between Formula, Function & Feature

Image

2 Easy Methods to Prevent Duplicate Values in a Column in Your Excel Workbook

Image
2 Easy Methods to Prevent Duplicate Values in a Column in Your Excel If you want to avoid entering duplicate values in a column in Excel, you can refer to this article. Here we will share you 2 simple approaches. At times, when you edit an Excel worksheet, you may want to ensure the data in a column are unique, namely preventing duplicate values in a column. It demands Excel to auto alert you every time when you enter duplicate values in a column. Thereinafter, we will share you 2 quick means to get it. Method 1:Prevent via “Data Validation” First off, select all the cells in a specific column, such as “Column A”. Then, turn to “Data” tab and click on “Data Validation” button in “Data Tools” group. Next, in the popup dialog box, on “Settings” tab, select “Custom” option from the drop down list of “Allow”. After that, input the following formula in the “Formula” field. =COUNTIF($A$1:$A$20,A1)=1 Later, switch to “Error Alert” tab in the current dialog box. Subse

Simple Method to Select All Non-blank Cells in an Excel Worksheet

Simple Method to Select All Non-blank Cells in an Excel Worksheet First off, get access to Excel VBA editor using Alt + F11 Then, put the following code into an unused module. Sub SelectAllNonBlankCells() Dim objUsedRange As Range Dim objRange As Range Dim objNonblankRange As Range Set objUsedRange = Application.ActiveSheet.UsedRange For Each objRange In objUsedRange If Not (objRange.Value = "") Then If objNonblankRange Is Nothing Then Set objNonblankRange = objRange Else Set objNonblankRange = Application.Union(objNonblankRange, objRange) End If End If Next If Not (objNonblankRange Is Nothing) Then objNonblankRange.Select End If End Sub After that, exit the VBA editor and add this macro to Quick Access Toolbar. Now, open your desired worksheet and click the macro button. At once, all non-blank cells will be selected, as shown in the f

Spell-Number in Rupees Excel VBA Formula

Please open Virtual Basic using Developer toolbar or pressing shortcut Alt + F11 & Insert new Module from Insert Menu or by right click in Project Explorer. Copy the underneath program in the module. Now move to the excel workbook and try the Formula "=SpellNumber(<number>)" You will get the number converted in Words. For any query please do comment or mail me on Gauravj75@gmail.com Public Function SpellNumbers(ByVal MyNumber) Dim Rupees, Paise, Temp Dim DecimalPlace, Count ReDim Place(9) As String Place(2) = " Thousand " Place(3) = " Lac " Place(4) = " Crore " Place(5) = " Arab " ' String representation of amount MyNumber = Trim(Str(MyNumber)) ' Position of decimal place 0 if none DecimalPlace = InStr(MyNumber, ".") 'Convert Paise and set MyNumber to Rupee amount If DecimalPlace > 0 Then Paise = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2)) MyNumber = Tr

Excel Keys that helps you in using/accessing excel without mouse

Particluars Shortcuts Create new Excel File Ctrl N Create New Sheet Shift F11 Move Between Sheets Clockwise Ctrl PageDown Move Between Sheets Anti-Clockwise Ctrl PageUp Move between opened Excel Workbooks Ctrl Tab Undo Ctrl Z Redo Ctrl Y Save Ctrl S Save As F12 Insert Table Ctrl L Zoom In Ctrl Alt + Zoom Out Ctrl Alt - Hide/Unhide the Toolbar Ctrl F1 Right-Clicking Menu Shift F10 Display Control Menu Alt SpaceBar Close Excel File Ctrl F4 Switch the Fn mode Fn Esc Go to Cell A1 Ctrl Home Go to Last Cell of Data Ctrl End Select Whole