+ Reply to Thread
Results 1 to 5 of 5

I want my criteria to change when I drag a formula

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2013
    Posts
    2

    I want my criteria to change when I drag a formula

    Hi guys,

    Sorry if this has been solved elsewhere. I usually find solutions on google pretty easily but I don't know that a solution even exists for this one.

    Here's my formula: =COUNTIFS('Job 1'!$C:$C,1,'Job 1'!$F:$F,"n")

    It works fine, but I need to paste it across many cells and I want my criteria "1" to increase to 2, 3, 4 and son on, the same way a row number changes if you haven't fixed it.

    So the next cell down, I want my formula to be =COUNTIFS('Job 1'!$C:$C,2,'Job 1'!$F:$F,"n")
    But Excel fixes this criterion - it will remain as 1 if I paste in another cell.

    Is there a solution to this?
    Thanks very much.

    Z

  2. #2
    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,050

    Re: I want my criteria to change when I drag a formula

    Hi and welcome to the forum

    Try this...=COUNTIFS('Job 1'!$C:$C,row(A1),'Job 1'!$F:$F,"n")

    I notice that you used COUNTIFS() which came with the 2007 version (.xlsx), but your profile says 2003. Please update your profile as necessary, members tailor questions based on your excel version
    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

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,557

    Re: I want my criteria to change when I drag a formula

    For the first row:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and drag down


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    02-20-2014
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: I want my criteria to change when I drag a formula

    Brilliant. Thanks so much. Sorry about my incorrect version.

    Z

  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
    53,050

    Re: I want my criteria to change when I drag a formula

    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] Drag formula, change sheet
    By lamdl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-03-2014, 01:26 AM
  2. [SOLVED] Change references as you drag formula down
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2013, 11:37 PM
  3. Replies: 3
    Last Post: 06-30-2010, 09:55 PM
  4. How do I keep letters the same and change the # for drag formula
    By ASST in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-22-2006, 09:30 PM
  5. COUNTIF: drag to change criteria, NOT range
    By jcmorang in forum Excel General
    Replies: 6
    Last Post: 02-16-2006, 07: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