
but in a complicated formula ( i could spend more time writing my IFs vertically, etc.) my eyes blur over or i need to go look at something else to fix the formula and i can't get out of that cell i'm writing in. and it bugs the hell out of me that excel won't let me enter an incorrect formula in a macro - i get why you can't enter it in a workbork cell, because it runs right away. The thing about the XLM macro language that really clicked for me is that it builds off of the skills you develop writing cell formulas.Īnd it has a precise logic. and by bible is a nice 2nd eiditon of Excel in Business by Douglas Cobb and Allan McGuffey from 1989. i do have the microsoft "macrofun" documentation. I came up with a workaround for my conditional test, since i can't get that R1C1 concatenated reference to work with the ISBLANK command I simply select the cell i want to query and then use ACTIVE.CELL() as the reference for ISBLANK and then I use an OFFSET function to write the result of the function into blank space. (like other names, it is quoted when first called out, but after that you don't use quotes). I am still mystified about the background automatic naming that makes something like that selection function work (I would call it variable definition) but whatever happens during the running of the macro does not appear to outlast the macro because when i go to define names after i've run it there is no rowcount, but obviously there is one during the running of macro as it doesn't throw errors and selects the correct cell using that concatentation with the variable rowcount.
CHANGE R1C1 TO A1 IN EXCEL 2011 FOR MAC CODE
and the quoted selection code above works fine even when operating with A1 reference selected (which is to say R1C1 is not checked). It doesn't work regardless of which style reference i have selected in preferences. Use ADDRESS to create an address from a given row and column number.Please Login or Register to view this content. The table below shows the options available for the abs_num argument for returning a relative, mixed, or absolute address. Finally, the sheet_text argument is meant to hold a sheet name that will be prepended to the address.

The a1 argument is a Boolean that toggles between A1 and R1C1 style references with a default value of TRUE for A1 style references. The abs_num argument controls whether the address returned is relative, mixed, or absolute, with a default value of 1 for absolute. Row and column are required, other arguments are optional.

The ADDRESS function takes five arguments: row, column, abs_num, a1, and sheet_text.

If you want to provide a row and column number and get back the value at that address, use the INDEX function. If you want to use this text inside a formula reference, you will need to coerce the text to a proper reference with the INDIRECT function. It's important to understand that the ADDRESS returns a reference as a text value. ADDRESS can return a relative, mixed, or absolute reference, and can be used to construct a cell reference inside a formula. The ADDRESS function returns the address for a cell based on a given row and column number.
