+ Reply to Thread
Results 1 to 2 of 2

Defining a column range limited to cells containing a value

  1. #1
    Registered User
    Join Date
    03-15-2009
    Location
    Somerset, England
    MS-Off Ver
    Mac 2011
    Posts
    7

    Defining a column range limited to cells containing a value

    Some months ago, Ron helped me with a formula to help with analysing the readings from my weather station.
    An example cell entry looks like this...

    =IF(COUNTIF($E$3:$E$4466,MAX($E$3:$E$4466))>=COLUMNS($E:E),
    INDEX($B:$B,SMALL(INDEX(($E$3:$E$4466=MAX($E$3:$E$4466))*ROW($E$3:$E$4466),0),
    COLUMNS($E:E)+COUNTIF($E$3:$E$4466,"<>"&MAX($E$3:$E$4466)))),"")

    This works great, but every month the total number of readings varies because of the number of days (Feb has 28 etc) so I have to change the $E$4466 value in the above manually for every occurrence of the range.

    Is there an alternative way of looking at the values in the range "from $E$3 to the last (bottom) cell in column E that is not empty". I could then substitute this in the formula above and it would be good-to-go for any month, no matter how many rows there were?

    Thanks, Chris

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Defining a column range limited to cells containing a value

    Hi,

    Do a Google Search for Excel Dynamic Named Ranges that may help, then used the named range in your formulas
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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