+ Reply to Thread
Results 1 to 7 of 7

offset in Named Range that consider the dynamic data

  1. #1
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    offset in Named Range that consider the dynamic data

    Hi All,

    I've 2 sheets (Receipts, Export Format) in my excel file where formula in Export Format E2 is =SUMIF(Receipt_Model,B2,Receipt_Quantity)

    Where Receipt_Model named range formula is =OFFSET(Receipts!$B$12,0,0,COUNTA(Receipts!$B:$B),1)

    Where Receipt_Quantity named range formula is =OFFSET(Receipts!$C$12,0,0,COUNTA(Receipts!$C:$C),1)

    My requirement is COUNTA(Receipts!$B:$B) or COUNTA(Receipts!$C:$C) will consider the range that has been entered in the new row of Receipts Sheet.

    But these name ranges are making my file working very slow which is a irritating part

    So Someone can help me in providing the above named ranges effectively so that my excel file should work fast.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: offset in Named Range that consider the dynamic data

    I think that SUMIF is faster than SUMIF(OFFSET(...))

    =SUMIF(Receipts!$B:$B,B2,Receipts!$C:$C)

    Assuming your current range is up to, i.e 1000, to be faster, expand it to 10,000, or more:

    =SUMIF(Receipts!$B$1:$B$10000,B2,Receipts!$C$1:$C$10000)
    Quang PT

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: offset in Named Range that consider the dynamic data

    I agree with bobo,

    A formula like:
    =OFFSET(Receipts!$B$12,0,0,COUNTA(Receipts!$B:$B),1)
    Must look at all rows in column B and will take longer.

    Using something like:
    =OFFSET(Receipts!$B$12,0,0,COUNTA(Receipts!$B1:$B2000),1)
    Might work faster if you never get more than 2000 rows of data.

    Give it a try.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: offset in Named Range that consider the dynamic data

    Bebo!!!! Thanks for your reply!!!!

    Here I dont want to extend my range everytime I enter values in a new row . So please suggest me the formula that supports it and doesnt make my file work slow

    i.e., rather than using $B$10000 or $C$10000 as you said in your formula, I want to extend it with any formula that makes my work easier

  5. #5
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: offset in Named Range that consider the dynamic data

    Thanks Marvin for your reply!!!!

    Its a daily routine work in a month, So I dont want to assume the range and even I might add new rows and remove rows as per my internal requirement.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: offset in Named Range that consider the dynamic data

    B:B refer to over 1 million rows.

    I think you can assume the largest data that can be used in 1 or 10 years?

    Assume your data never gets 1/10, is it enough with the range B1:B100000?

  7. #7
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: offset in Named Range that consider the dynamic data

    Actually 10000 is fine for me but I thought to learn a new thing in Sumif that considers dynamic range without assuming any range something like =SUM(E2:OFFSET(E7,-1,0))

    but above formula is not related to my requirement completely. ANYWAYZ THANK YOU FOR YOUR 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. Replies: 11
    Last Post: 01-16-2015, 07:04 PM
  2. [SOLVED] Offset Dynamic Named Range
    By jwillis07 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-23-2014, 06:35 AM
  3. Replies: 5
    Last Post: 03-04-2014, 12:43 PM
  4. [SOLVED] Need a Dynamic Named Range; Offset/Match using 2 Columns
    By Kalithro in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-18-2013, 06:54 AM
  5. Replies: 2
    Last Post: 06-03-2013, 08:26 AM
  6. Named dynamic range using offset in VBA
    By craigmcewan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2011, 05:11 AM
  7. Dynamic named range & Offset
    By fastballfreddy in forum Excel General
    Replies: 1
    Last Post: 05-04-2006, 04:10 AM

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