+ Reply to Thread
Results 1 to 12 of 12

drag forumula?

  1. #1
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    drag forumula?

    Hi all,
    I have the following formula and want to drag it.. but I need the G:G to change in relation to the column
    Please Login or Register  to view this content.
    Can anyone help
    Thanks
    loopiloo

    https://www.mrexcel.com/forum/excel-...ml#post4992050
    Last edited by loopiloo; 01-22-2018 at 02:03 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,100

    Re: drag forumula?

    try this:
    =SUMIFS(INDIRECT("'"&$F$4&"'!"&CELL("address",G1)&":"&CELL("address",G100)),INDIRECT("'"&$F$4&"'!C:C"),$E14,INDIRECT("'"&$F$4&"'!B:B"),$E$4)

    but don't use whole column references with volatile functions... unless you're very patient. Adjust all ranges to be the same.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: drag forumula?

    Thanks Glenn, but I need a bit more help in getting this to work... I really dont understand what you mean "dont use column references with volatile functions" it is rather slow though
    I didnt make this formula.. and Im really not that good with formulas unfortunately...

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,100

    Re: drag forumula?

    INDIRECT is a volatile function. It recalculates EVERY time you change something on the sheet. If you use whole column references (G:G), Excel will calculate the formula for 1,000,000-plus rows, for every cell this formula is in, every time you change something. So, sit back and watch your hair turn grey as you wait.

    =SUMIFS(INDIRECT("'"&$F$4&"'!"&CELL("address",G2)&":"&CELL("address",G100)),INDIRECT("'"&$F$4&"'!C2:C100"),$E14,INDIRECT("'"&$F$4&"'!B2:B100"),$E$4)

    the formula above will still recalculate everytime you change something, but it will ONLY go down from row 2 to row 100, not by more than a million rows.

    Where are you? mainland Europe, or elsewhere (please amend your profile to show location and Excel version: both are important for provision of efficient solutions)

  5. #5
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: drag forumula?

    Im in the uk and its excel version 2007.. updated my profile like you said..
    The G:G is in a different sheet and would need to calculate up to 5000 rows.. I change the sheet name in cell F4 which gives me the information i need.. hope im making sense..

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,100

    Re: drag forumula?

    The location of G:G is picked up from F$4. Further changes to the CELL("address",G2)&":"&CELL("address",G100)) bit are not needed (except, of course, the ranges... given that 2 to 100 is incorrect).

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,100

    Re: drag forumula?

    I had a feeling you might be UK based.... I'm old enough to remember Loopy Loo - which may have been the inspiration for your username...

  8. #8
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: drag forumula?

    It that long ago I cant remember the inspiration for my username...

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,913

    Re: drag forumula?

    crossposted: https://www.mrexcel.com/forum/excel-...g-formula.html

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  10. #10
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: drag forumula?

    Sorry didnt know i was breaking rules..

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,100

    Re: drag forumula?

    Is that you sorted now? if not... what issues remain. If so, then you're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  12. #12
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: drag forumula?

    Will do thanks a lot.. got solution

+ 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: 14
    Last Post: 11-26-2015, 09:43 AM
  2. Replies: 6
    Last Post: 03-12-2014, 12:16 PM
  3. 2 If's Forumula
    By Labl in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-28-2013, 02:37 PM
  4. need help with a forumula
    By Robtastic in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-20-2012, 05:11 AM
  5. Forumula??
    By jyche14 in forum Excel General
    Replies: 2
    Last Post: 05-26-2011, 01:24 PM
  6. IF, THEN Forumula Help
    By patd7260 in forum Excel General
    Replies: 3
    Last Post: 05-13-2005, 02:07 PM
  7. What does this Forumula Do?
    By Laureen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2005, 03:07 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