Posts

Showing posts from 2012

Get the last value in an Excel Range

I frequently copy formulas from one months data to the next, but I run into trouble when I want to get a total off the last row, when the last row is different each month. I discovered a formula that will read the last value (before blanks) in a range. Enter the formula =INDEX($E$1:$E$5100,LARGE(IF($E$1:$E$5100<>"",ROW($E$1:$E$5100)),1),1) Press Ctrl-Shft-Enter The key here is you must use Ctrl-Shft-Enter. It will insert curly brackets, which wont work if you manually enter them. The curly brackets are needed as this is an array formula. See Introducing array formulas in Excel from Microsoft or search for other websites for further information.

Unable to direct edit an an Excel cell

I noticed working one day that Excel was no longer letting me make edits directly in cells (when I double-click on a cell). I needed to go to the formula bar to make my edits, which is much more time consuming and mouse intensive. After living with this for a week or so, I discovered the issue and how to correct. Note that I'm using Excel 2007, so your version may be different. Click the Office Button (upper-left round Office button). On the bottom of the menu, click Excel Options . - This will open the Excel Options dialog box. Select Advanced from the left-menu. Check the box, Allow editing directly in cells . Click the OK button at the bottom of the dialog box. I'm not sure how this setting got changed, but nevertheless it solved the issue of not being able to edit directly in cells.

Alternative to Nested IFs in Excel

Using Excel for multiple comparisons with Nested IFs has some limitations. There a couple of different solutions. One would be to use values on a separate sheet and the vlookup function. Another option is to use multiple IFs separate by an ampersand (&). Here's and example: IF(NOT(ISERROR(FIND("Incident Created",A2))),"Incident Created page",""))&IF(AND(ISERROR(FIND(" | ",A2)),ISERROR(FIND("Community",A2)),ISERROR(FIND("Search Results",A2))),"Help Landing page","") Note the false condition sets an empty value. I see a benefit in that the code is much easier to read, as nesting can become difficult to follow. The down side is you need to test the negative condition of other IFs so you don't have multiple matches.