Tag Archives: Excel VBA Function

Finding Cell with Minimum/Maximum Value in Active Worksheet

Let say we want to find position of cell containing the minimum/maximum value in current/active Excel worksheet, and then after we found the cell, we will change the cell format to make it stand out before other cells. The logic … Continue reading

Posted in Excel VBA Function, Workbook and Worksheet | Tagged , , , , , , , , , , , , , , , , , , | 10 Comments

How To Find the Last Row That Contain Data in Excel?

UPDATE June 13, 2008: Another alternative way to find the last row with data : Function LastRow() As Long Dim ix As Long ix = ActiveSheet.UsedRange.Row – 1 + ActiveSheet.UsedRange.Rows.Count LastRow = ix End Function I did a simple test, … Continue reading

Posted in Excel VBA Function | Tagged , , , , , , , , , , , , , , , | 27 Comments

How to ceiling a decimal number in Excel?

Ceiling, or changing a specific decimal number into become its upper number, for example if we ceiling 3.25 we will got 4, or if we ceiling 2.75 then we will got 3 as a result. To get a result like … Continue reading

Posted in Excel VBA Function | Tagged , , , , , | 5 Comments