Posts

MS Excel Lookup and reference functions (reference)

Image
MS Excel Lookup and reference functions (reference) Important:  Try using the new XLOOKUP function, an improved version of VLOOKUP that works in any direction and returns exact matches by default, making it easier and more convenient to use than its predecessor.   Watch Videos Function Description ADDRESS function Returns a reference as text to a single cell in a worksheet AREAS function Returns the number of areas in a reference CHOOSE function Chooses a value from a list of values COLUMN function Returns the column number of a reference COLUMNS function Returns the number of columns in a reference FILTER function Filters a range of data based on criteria you define FORMULATEXT function Returns the formula at the given reference as text GETPIVOTDATA function Returns data stored in a PivotTable report HLOOKUP function Looks in the top row of an array and returns the value of the indicated cell HYPERLINK function Creates a shortcut or jump that opens a document stored o...

Power BI Report - Live

 

Referencing a Workbook using VBA

Image
Code Concept Day – 1,   Referencing a Workbook using VBA   Using Workbook Names If you have the exact name of the workbook that you want to refer to, you can use the name in the code. Let’s begin with a simple example. If you have two workbooks open, and you want to activate the workbook with the name – Examples.xlsx, you can use the below code: Sub ActivateWorkbook() Workbooks("Examples.xlsx").Activate End Sub   If you want to activate a workbook and select a specific cell in a worksheet in that workbook, you need to give the entire address of the cell (including the Workbook and the Worksheet name). Sub ActivateWorkbook() Workbooks("Examples.xlsx").Worksheets("Sheet1").Activate Range("A1").Select End Sub The above code first activates Sheet1 in the Examples.xlsx workbook and then selects cell A1 in the sheet. You will often see a code where a reference to a worksheet or a cell/range is made without referring to the wor...