+ Reply to Thread
Results 1 to 9 of 9

Stop the range changing when i drag it across cells

  1. #1
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    Stop the range changing when i drag it across cells

    hi all

    i understand how to stop a range changing when i am referring to Cells such as $A$12 however can someone tell me how i stop the formula moving

    =COUNTIFS(List1[COY],"A",List1[COACH 35-55],"<>")

    i want to stop [coy] list moving or changing

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Stop the range changing when i drag it across cells

    Assume you have a formula in A1 that is correct and you want to drag it to G1.
    Start in cell A1 and select A1 to G1. Hit Ctrl+r.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Stop the range changing when i drag it across cells

    Hmm... If you want to stop one from moving but not the other I suggest building up the name with & and evaluate it with INDIRECT.
    Instead of: =COUNTIFS(List1[COY]
    you can use: =COUNTIFS(INDIRECT("List1["&$B$2&"]"
    put "COY" in B" ofcourse

  4. #4
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    Re: Stop the range changing when i drag it across cells

    JACC yes control R that works however it copes all across the cells, i only want the part where it says Coy to stay

    i cannot get the indirect to work mate

  5. #5
    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
    52,938

    Re: Stop the range changing when i drag it across cells

    That looks like a formula from a Table? If si, maybe try typing in that particular reference manually - so that if "List1[COY]," is actually A2, then type in A2 and absolute as needed ($A$2, cell abs...$A2, col abs...A$2, row abs)

    If that still doesnt work, I think to avoid guesswork, it would help if you uploaded a sample o what you are working with?
    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

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Stop the range changing when i drag it across cells

    You need double "" around the A, I think.

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Stop the range changing when i drag it across cells

    I just did this before I realized there might be an issue with "". I'll post it anyway.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    Re: Stop the range changing when i drag it across cells

    Quote Originally Posted by Jacc View Post
    I just did this before I realized there might be an issue with "". I'll post it anyway.
    Jacc

    i like it a lot mate thank you, will keep this in mind for future projects

    mick

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Stop the range changing when i drag it across cells

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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: 10-14-2016, 09:02 AM
  2. Stop Changing Cells to Date Format
    By planterns in forum Excel General
    Replies: 3
    Last Post: 09-15-2012, 07:58 PM
  3. Drag down range formula but skip 4 cells
    By diksha_16 in forum Excel General
    Replies: 4
    Last Post: 06-25-2012, 06:54 AM
  4. Replies: 1
    Last Post: 03-09-2006, 03:50 PM
  5. stop increasing the num, when drag down the columns
    By cmiaoqin in forum Excel General
    Replies: 2
    Last Post: 12-08-2005, 02:41 AM

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