+ Reply to Thread
Results 1 to 2 of 2

create dynamic range that finds the last row and column with mixed data and blanks

  1. #1
    Registered User
    Join Date
    09-06-2017
    Location
    portland, oregon
    MS-Off Ver
    2016
    Posts
    33

    create dynamic range that finds the last row and column with mixed data and blanks

    I am trying to create a dynamic range that will expand to the last row and column. The data may contain blank cells in between, and will consist of dates and text. My data will start in $M$8 and will expand by columns and rows. I have tried to use the following formula: =OFFSET(Sheet1!$M$8,0,0,COUNTA(Sheet1!$M:$M),COUNTA(Sheet1!$1:$1)) but it does not work. How can I rewrite my formula to achieve the above? The last value in the image is in $T$13 "email" under Result header
    fgd.png
    Last edited by jdcortez; 04-14-2019 at 09:34 PM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: create dynamic range that finds the last row and column with mixed data and blanks

    See if this works.

    If you are going to use a dynamic range I would recommend a dynamic named range (DNR). Something like this. As a DNR this will not have to be array entered. You can "future proof" the $M$1:$T$200 parts, but I would not reference whole columns there.



    rnge
    =INDEX(Sheet1!$8:$8,MATCH("zzzz",Sheet1!$7:$7,1)):INDEX(Sheet1!$M$1:$M$200,MAX(IF(Sheet1!$M$1:$T$200<>"",ROW(Sheet1!$M$1:$T$200)-MIN(ROW(Sheet1!$M$1:$T$200))+1)))
    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to count blanks and non-blanks with a dynamic range
    By brittdyer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-12-2018, 07:45 AM
  2. VBA code finds blanks, but how to write VBA to ignore non blanks?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2016, 10:51 AM
  3. Replies: 2
    Last Post: 09-28-2015, 07:57 PM
  4. [SOLVED] Create a list of uppercase data from a range excluding blanks and errors
    By PAexcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-17-2014, 01:32 PM
  5. Extract data from a horizontal range with blanks and create a vertical list
    By dommcg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2013, 10:41 AM
  6. Loop that finds blanks, then subtotals values into different column
    By Bevy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2006, 11:45 AM
  7. [SOLVED] Create dynamic dropdown from range including blanks
    By Mike Mick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2006, 12:00 PM

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