+ Reply to Thread
Results 1 to 11 of 11

Help with OFFSET Function

  1. #1
    Registered User
    Join Date
    10-04-2013
    Location
    Salt Lake City
    MS-Off Ver
    2010
    Posts
    84

    Help with OFFSET Function

    I am re-building SEVERAL Reports and automating them - now that I have SQL access; I have a query that dumps the data I need. I have a weekly stats report, which tracks 56 weeks of performance data, for our Tech Support centers.

    I have the Charts Dynamic somewhat – but what I would like to do, is have the OFFSET function dynamic as well, so it only looks at the current week and the past -56 weeks, I have tried COUNT, COUNTA, COUNT IF.. and I cannot get this figured out. I just want to the dump the data into the table, and be done with it. Haha.. I don’t have time to update the ranges.
    I have looked through the Forum at similar topics on creating a dynamic ranges in the =OFFSET function.. And I don’t know what I am missing. And I am stuck, please help!
    Not sure if this matters, but I use a FORM Control so the users can select which Metric on the chart they want to see - on the Dashboard Tabs..

    My Offset functions you can see in the Name Manger - you can see what I am doing there, hopefully.

    Anyway, I've attached my report – any help would be greatly appreciated.

    ----ADDING so.. I don't think in my case, I need to make my offset function dynamic - here's why.. My Offset Function is based off a preset range. If you look in the file, in Name Manger, the ranges the Offset function is looking at refers to LABELS =OFFSET(LABELS,Data!$b$73,0) I've moved the ranges in LABELS - and it works.. so if I can get the range in the LABELS to count or something...this would solve my issue (I hope I am making sense)
    Attached Files Attached Files
    Last edited by BenCrockett; 10-09-2013 at 12:16 PM.

  2. #2
    Registered User
    Join Date
    10-04-2013
    Location
    Salt Lake City
    MS-Off Ver
    2010
    Posts
    84

    Re: Help with OFFSET Function

    Sorry, will add, I am doing an Offset of a Range in the Name Manager - the "LABELS1 > 6" are my ranges, I am doing the offset function.. so maybe I just need to make those ranges Dynamic, because the OFFSET function, is based on that "pre-set" ranges.. how would I accomplish that.. I'm lost for solutions..

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,052

    Re: Help with OFFSET Function

    Your dates are actually text, that just looks like a date. Perhaps if you converted then to actual dates, it would make it easier to do the ranges?

    An alternative might be to add a helper row, sequesntially numbered (1,2,3 etc) and then base the range on that? =max(range):Max(range)-56...something lik ethat
    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
    10-04-2013
    Location
    Salt Lake City
    MS-Off Ver
    2010
    Posts
    84

    Re: Help with OFFSET Function

    Okay, done.. But my real issue is, how do I get the "LABELS" ranges to be dynamic?

  5. #5
    Registered User
    Join Date
    10-04-2013
    Location
    Salt Lake City
    MS-Off Ver
    2010
    Posts
    84

    Re: Help with OFFSET Function

    Quote Originally Posted by FDibbins View Post
    Your dates are actually text, that just looks like a date. Perhaps if you converted then to actual dates, it would make it easier to do the ranges?

    An alternative might be to add a helper row, sequentially numbered (1,2,3 etc) and then base the range on that? =max(range):Max(range)-56...something lik ethat
    Let me see if that works..

  6. #6
    Registered User
    Join Date
    10-04-2013
    Location
    Salt Lake City
    MS-Off Ver
    2010
    Posts
    84

    Re: Help with OFFSET Function

    Quote Originally Posted by BenCrockett View Post
    Let me see if that works..

    No.. this doesn't work, either I am doing the formula wrong, or something, but I get an invalid reference..=HATETHISSOMETIMES

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,052

    Re: Help with OFFSET Function

    which 1 did you try?

  8. #8
    Registered User
    Join Date
    10-04-2013
    Location
    Salt Lake City
    MS-Off Ver
    2010
    Posts
    84

    Re: Help with OFFSET Function

    Quote Originally Posted by FDibbins View Post
    which 1 did you try?
    =MAX(range):Max(range)-56 and using (1,2,3) <---Not sure how to base a range off that.. so I could be doing it wrong.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,052

    Re: Help with OFFSET Function

    This doesnt directly answer your question, but you sould be able to modify this for your ranges.

    I skipped both of my suggestions, and used this instead (and yes, I know uyou didnt want a sum(), but it shows how to use the offset() function)...
    =SUM(OFFSET($A$1,1,COUNTA(1:1)-55,,56))

  10. #10
    Registered User
    Join Date
    10-04-2013
    Location
    Salt Lake City
    MS-Off Ver
    2010
    Posts
    84

    Re: Help with OFFSET Function

    Ha! Works! THANK YOU!! You da'man.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,052

    Re: Help with OFFSET Function

    haha Happy to help

+ 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] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  2. Replies: 0
    Last Post: 01-19-2013, 01:35 PM
  3. [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
  4. function similar to offset to offset the offset
    By Jerseynjphillypa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2012, 03:07 PM
  5. Offset function with nested match function not finding host ss.
    By MKunert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 06:50 PM

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