+ Reply to Thread
Results 1 to 2 of 2

Range based on values

  1. #1
    Registered User
    Join Date
    11-30-2009
    Location
    Cincinnati
    MS-Off Ver
    Excel 2003
    Posts
    1

    Range based on values

    Hi,

    I have a series of data that is updated each month. The cells are formulas that feed from other worksheets.

    so in February, the data looks like this:

    A B C
    Jan Feb Mar
    25 32 -


    then in March, when the data is updated, the formula in column C will return a value.

    I would like to determine a range based on whether the cells have values (I don't want the cells with just the formulas only.) So at the end of Feb, my range would be A-B, and at the end of March the range would adjust to A-C. How do I do this?

    Thanks in advance for your help!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Range based on values

    It's not very clear what you intend to do with the range once found ?

    In which rows do the values appear, row 2 ?

    You can use:

    =MATCH(9.99999999999999E+307,$2:$2)

    to determine the last column containing a number if that's your wish ?

    Your range would thus be: $A$2:INDEX($2:$2,MATCH(9.99999999999999E+307,$2:$2))

    I would use the above in preference to any native OFFSET function
    Last edited by DonkeyOte; 11-30-2009 at 03:16 PM. Reason: added example re: INDEX

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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