+ Reply to Thread
Results 1 to 4 of 4

Dragging Formula to Fill Column

  1. #1
    Registered User
    Join Date
    05-14-2015
    Location
    IOWA CITY, IOWA, USA
    MS-Off Ver
    2010
    Posts
    30

    Dragging Formula to Fill Column

    I am trying to drag this formula down an entire column.

    =IF(ISBLANK(Sheet1!D3),"",NETWORKDAYS(Sheet1!D3,TODAY(),'INFO TAB'!A3:'INFO TAB'!A32))

    I want the D3 reference to change accordingly which it does... so in cell 4 it changes to D4 etc, but I want the 'INFO TAB'!A3:'INFO TAB'!A32 to remain as just that for all cells but it keeps changing those accordingly as well. How can I stop the second part from changing which keeping the first part as is?

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Dragging Formula to Fill Column

    =IF(ISBLANK(Sheet1!D3),"",NETWORKDAYS(Sheet1!D3,TODAY(),INDIRECT("'INFO TAB'!A3:'INFO TAB'!A32")))

    Note: INDIRECT(" ")
    Double quotes around the bit you want to keep
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    05-14-2015
    Location
    IOWA CITY, IOWA, USA
    MS-Off Ver
    2010
    Posts
    30

    Re: Dragging Formula to Fill Column

    Great Thanks!

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dragging Formula to Fill Column

    In order to lock cell references in place, use $
    $ in front of column (i.e. $A1) keeps the column the same when copying left or right
    $ in front of the row (i.e. A$1) keeps the row the same when copying up and down
    $ in front of both keeps it the same no matter which direction you copy it in.
    So try
    =IF(ISBLANK(Sheet1!D3),"",NETWORKDAYS(Sheet1!D3,TODAY(),'INFO TAB'!$A$3:'INFO TAB'!$A$32))

    Also, you only need to reference the sheet once within a range so you can shorten it to

    =IF(ISBLANK(Sheet1!D3),"",NETWORKDAYS(Sheet1!D3,TODAY(),'INFO TAB'!$A$3:$A$32))
    Is that what you were looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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: 3
    Last Post: 12-14-2012, 05:39 PM
  2. [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
  3. Replies: 0
    Last Post: 05-10-2011, 11:05 AM
  4. Auto-fill a column without dragging cell down
    By tas666 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-21-2006, 02:47 PM
  5. [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