+ Reply to Thread
Results 1 to 11 of 11

Offset function not capturing entire range

  1. #1
    Registered User
    Join Date
    02-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    60

    Offset function not capturing entire range

    Hello, my worksheet has 1096 rows of data including headers. I am trying to create dynamic named ranges using the OFFSET function but when I check to see if they are capturing the entire range I see they are not.

    Here is my formula:

    OFFSET(SiteTrac!$FA$1,0,0,COUNTA(SiteTrac!$FA:$FA),1)

    OR

    OFFSET(SiteTrac!$FA$1,0,0,COUNTA(SiteTrac!$FA:$FA)-1,1)

    OR

    OFFSET(SiteTrac!$FA$1,0,0,COUNTA(SiteTrac!$FA:$FA)-1)

    OR

    OFFSET(SiteTrac!$FA$1,0,0,COUNTA(SiteTrac!$FA:$FA))

    I have tried all four but every time it continues to stop on row 409. I have tried to name different columns and they all stop short too.

    Any ideas?

    Thanks!

  2. #2
    Registered User
    Join Date
    02-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    60

    Re: Offset function not capturing entire range

    Sorry, "SiteTrac" is the name of the tab I am working in.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    49,991

    Re: Offset function not capturing entire range

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    60

    Re: Offset function not capturing entire range

    Here is the file. Note the columns have now changed to A and B but the same issue persists.
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    49,991

    Re: Offset function not capturing entire range

    OK so what were you going to do with that dynamic range, and what was your expected answer?

  6. #6
    Registered User
    Join Date
    02-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    60

    Re: Offset function not capturing entire range

    I'm trying to capture all the data in each column so that when more dates are entered, the named range will automatically pick them up.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    49,991

    Re: Offset function not capturing entire range

    give me an example of what you will be doing? I need to see what answer you are expecting to get?

    For instance, this returns 1086...
    =COUNT(OFFSET($A$1,0,0,MATCH(1E+306,$A:$A,1),1))

  8. #8
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Offset function not capturing entire range

    You can use the below formula while defining named range (below formula is for column A):

    =OFFSET(SiteTrac!$A$1,0,0,MAX(MATCH(1E+306,SiteTrac!$A:$A,1),MATCH("*",SiteTrac!$A:$A,-1)),1)
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    60

    Re: Offset function not capturing entire range

    I will be making a chart with the date on the x-axis. I want to make sure that as more dates get added to the data set that the chart will automatically update and populate those dates. I also want to be able to type, for example, =COUNTA(F_MS30) instead of =COUNTA(A:A) with +F_MS30" being the name of the range of cells.

    Thanks for your help but it's not working. It shows no cells selected when I tested it.

  10. #10
    Registered User
    Join Date
    02-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    60

    Re: Offset function not capturing entire range

    ExcelFandoo, it worked perfectly, thank you so much!

  11. #11
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Offset function not capturing entire range

    Thank you.
    Last edited by excelfandoo; 02-09-2014 at 03:10 AM. Reason: Solved the problem

+ 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] Filtering on date range, but capturing items that 'straddle' the range
    By Kite3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2013, 05:38 AM
  2. [SOLVED] Repeat Cut & Paste function with Range.offset function VBA
    By kitcargray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2012, 12:17 PM
  3. [SOLVED] Using range offset and Hlookup in an interpolation function
    By ImperatorAtticus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2012, 06:40 AM
  4. [SOLVED] Offset Function works in cell, not in named range
    By DragonslayerApps in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  5. Offset Function works in cell, not in named range
    By DragonslayerApps in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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