+ Reply to Thread
Results 1 to 3 of 3

Tricky Question with the 'Cell Function'

Hybrid View

  1. #1
    Registered User
    Join Date
    01-07-2005
    Posts
    21

    Tricky Question with the 'Cell Function'

    In my spreadsheet, the code

    =(ADDRESS(5,(MONTH(B6)+6),4))

    will equal "L5'

    But when I try to reference this in the line

    =CELL("contents",ADDRESS(5,(MONTH(B6)+6),4))

    I get an error?

    But when I manually type it out

    =CELL("contents",L5)

    It works?

    What am a missing?

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    ADDRESS() returns a text value. Since INDIRECT returns a reference specified by a text string, you can have the following...

    =CELL("contents",INDIRECT(ADDRESS(5,(MONTH(B6)+6),4)))

    Hope this helps!

  3. #3
    Registered User
    Join Date
    01-07-2005
    Posts
    21
    Works Perfectly!!

    Thanks Alot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1