View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Excel: ADDRESS cannot be used in CELL. How stupid is this?

Eg. =CELL("contents",ADDRESS(O1,13,4)) doesn't work.

It is not a valid function call. Address does not accept O1. Also, the
second parameter of CELL is a range reference, not a text address of a range.
You could use INDIRECT to remedy that, but it's still unclear what you're
trying to do.

If you're trying to refer to a cell using just row/col reference, where D3
contains 1 (row number), E3 contains 15 (column number), either of these
would return the contents of O1.
=OFFSET(INDIRECT("A1"),D3-1,E3-1)
=INDIRECT(ADDRESS(D3,E3))

Considering Excel's ability to nest functions, use array functions, use VBA
to write your own functions, use VBA to manipulate data with Word/Access and
other programs through cross application programming, use VBA to create
custom objects through class modules, create custom forms, allow access to
the file system through VBA, and access windows API functions - I, for one,
would say the 'talent' behind Excel's programmming is considerable.


"themantheworldlovesmorethannathan" wrote:

Why create a function like ADDRESS when it can't be then used immediately in
other functions (this would seem the whole purpose).

Eg. =CELL("contents",ADDRESS(O1,13,4)) doesn't work.

How lame is the 'talent' programming Excel?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions