+ Reply to Thread
Results 1 to 4 of 4

How to force excel to drag formula by two, rather than one.

  1. #1
    Registered User
    Join Date
    03-14-2014
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2010
    Posts
    6

    How to force excel to drag formula by two, rather than one.

    This is my formula:
    =DCOUNT(timeg15w!$A$1:$F$3909, "WPC",Criteria!A1:C2)

    My question concentrates on this part of the formula:...Criteria!A1:C2

    When I drag down the formula, it changes, as usually, adding 1 to the cells address, like this:
    Criteria!A1:C2
    Criteria!A2:C3
    Criteria!A3:C4

    BUT, I want the formula dragged down, adding 2 instead of 1, changing like this:
    Criteria!A1:C2
    Criteria!A3:C4
    Criteria!A5:C6

    How can I achieve this result?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to force excel to drag formula by two, rather than one.

    Try this kind of approach:
    Please Login or Register  to view this content.
    Instead of starting with ROWS($1:1)
    reference the row that the first dcount formula is in.

    When copied down, that formula will increment the criteria range by 2 rows.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    03-14-2014
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: How to force excel to drag formula by two, rather than one.

    Yes, that works perfectly!! Thank you so much. Just so I am clear that I understand this formula. If I wanted To utilize the same formula and apply it to a starting criteria of
    Criteria!D1:G2
    Criteria!D3:G4
    Criteria!D5:G6

    Would I modify the formula to:

    =DCOUNT(timeg15w!$A$1:$F$3909, "WPC",OFFSET(Criteria!$D$1:$G$2,(ROWS($1:1)-1)*2,))

    Please advise if this would work and thank you so much for your help!!

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to force excel to drag formula by two, rather than one.

    Yes, if the first of those formulas is in Row_1.
    Technically, the formula can be in another row and reference Row_1. However, that leaves it vulnerable to corruptions caused by somebody inserting/deleting rows.

    So, if the formula begins in L7 use this:
    Please Login or Register  to view this content.

+ 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] Can I make excel automatically drag-down a formula as you fill in data?
    By Yoshi64 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-16-2014, 07:28 PM
  2. Force destination formatting
    By krumel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 11:31 PM
  3. Replies: 0
    Last Post: 02-07-2013, 12:20 AM
  4. MS-excel 2003: Drag & Drop formula
    By laxmi_383 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-19-2010, 02:12 AM
  5. Replies: 4
    Last Post: 10-25-2008, 05:13 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