+ Reply to Thread
Results 1 to 6 of 6

Dragging 2 column formula across

  1. #1
    Registered User
    Join Date
    09-07-2009
    Location
    Lytham, England
    MS-Off Ver
    Excel 2003+07
    Posts
    75

    Dragging 2 column formula across

    Hi,

    I am design a formula that is easy to drag to the right.

    It is interrogating 2 columns for each person (an am and a pm) to count holidays.

    The formula is

    =COUNTIF(Holidays!C:D,Balances!$B6)/2

    B6 is just "Hol" which it is meant to calculate.

    If I drag this across it is
    =COUNTIF(Holidays!D:E,Balances!$B6)/2 rather than =COUNTIF(Holidays!E:F,Balances!$B6)/2

    I just can't seem to find an easy way to resolve this.

    Thanks as always

    Kind Regards
    Paul
    Last edited by pdauction; 12-15-2015 at 08:39 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Dragging 2 column formula across

    have you tried adding $ to the first part of your formula? =COUNTIF(Holidays!$C:$D,Balances!$B6)/2
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    09-07-2009
    Location
    Lytham, England
    MS-Off Ver
    Excel 2003+07
    Posts
    75

    Re: Dragging 2 column formula across

    Thanks - unfortunately that keeps them all as $C:$D rather than changing to E:F and so on.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Dragging 2 column formula across

    Oh, you want to move it one column to the right but have it jump 2 columns over, is that what you want?

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: Dragging 2 column formula across

    =COUNTIF(OFFSET(Holidays!$C:$D,,COLUMN(A1)*2-2),Balances!$B6)/2
    Please Login or Register  to view this content.
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Registered User
    Join Date
    09-07-2009
    Location
    Lytham, England
    MS-Off Ver
    Excel 2003+07
    Posts
    75

    Re: Dragging 2 column formula across

    Thanks nflsales, that's worked.

    Sorry for not being clearer Sambo kid.

+ 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] Dragging Formula to Fill Column
    By arpirnat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2015, 11:50 AM
  2. Replies: 3
    Last Post: 10-07-2014, 09:29 AM
  3. [SOLVED] Skipping a column when dragging formula
    By bharbir in forum Excel General
    Replies: 4
    Last Post: 08-05-2013, 01:51 AM
  4. When dragging a formula horizontally, how to change row instead of column?
    By Aderbalito in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2013, 10:44 PM
  5. [SOLVED] Skip column when dragging formula.
    By D_N_L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2012, 07:42 AM
  6. [SOLVED] Dragging Formula Down Column Returns Row Values
    By Jrub in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2012, 09:20 PM
  7. [SOLVED] dragging a formula down a column
    By Jason R in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2005, 09:10 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