+ Reply to Thread
Results 1 to 6 of 6

Number In Formula Doesn't Increase When Dragged To Other Cells

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    Manchester, UK
    MS-Off Ver
    365
    Posts
    7

    Number In Formula Doesn't Increase When Dragged To Other Cells

    Hi,

    I have this formula: =IF(C$9>=1,A14+1,"")


    But when I drag the formula down to multiple rows the highlighted number doesn't incrementally increase. Can someone help make this happen?


    Thanks!!
    Last edited by derv10; 07-17-2014 at 08:18 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Number In Formula Doesn't Increase When Dragged To Other Cells

    Assuming the formula starts in Row 1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

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

    Re: Number In Formula Doesn't Increase When Dragged To Other Cells

    Assuming this is in row 1

    =IF(C$9>=ROW(),A14+1,"")

    If it's NOT in row one you'll have use a simple addition calculation to get the right result.
    e.g.
    if it's in Row 2 then you want
    =IF(C$9>=ROW()-1,A14+1,"")

    if it's in Row 3 then you want
    =IF(C$9>=ROW()-2,A14+1,"")

    You'll need to experiement with the ROW() number so you get the correct offset you want.
    Or you might be able to include the OFFSET and ROW function togethe rot produce the correct row number.
    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.

  4. #4
    Registered User
    Join Date
    07-17-2014
    Location
    Manchester, UK
    MS-Off Ver
    365
    Posts
    7

    Re: Number In Formula Doesn't Increase When Dragged To Other Cells

    It doesn't seem to be working? I'll try to explain better:

    Cell C9 is a duration calculated between 2 dates which I input (A9 is start date and B9 is end date)
    Cell A14 is my 'day 1' which is simply =A9 in the cell
    Cell A15 is the start of my formula which I want to insert the date if it is within the duration.

    So
    A15 = =IF(C$9>=1,A14+1,"")
    A16 = =IF(C$9>=2,A14+1,"")
    A17 = =IF(C$9>=3,A14+1,"")

    And so on. When C9 is not greater than or equal to the duration then no date is present. The problem I have is making the greater than or equal to number increase as I drag the formula down each row.


    Hope this is clearer?!?! :$

    Thanks!

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Number In Formula Doesn't Increase When Dragged To Other Cells

    So, in cell A15, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can now drag-copy this formula down...

  6. #6
    Registered User
    Join Date
    07-17-2014
    Location
    Manchester, UK
    MS-Off Ver
    365
    Posts
    7

    Re: Number In Formula Doesn't Increase When Dragged To Other Cells

    Thank you!! Works great

+ 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: 5
    Last Post: 01-15-2016, 06:16 PM
  2. Formula that advances Column number while being dragged down a single column
    By XlXarchenemyXlX in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2014, 05:25 PM
  3. lock cells from being moved but allow formula to still be dragged down
    By david1987 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 04:46 AM
  4. formula to change sheet number when dragged
    By italy426 in forum Excel General
    Replies: 5
    Last Post: 12-02-2010, 04:37 PM
  5. Replies: 10
    Last Post: 10-07-2005, 03:05 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