+ Reply to Thread
Results 1 to 9 of 9

Drag down a formula

  1. #1
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Drag down a formula

    Hi

    I have 2 tabs. In the tab TEST I want to reference a cell from the tab "CALCULATION". Below this cell, I need to reference the same cell as above.
    But when I drag it down, it will jump a few references:

    I have my 4 first cells done manually
    A2
    A3
    A4
    A5
    when I drag down I get
    A14
    A15
    A16
    A17
    A26
    A27
    ...

    Could someone explain to me what I have to do in order to reference all the cells from the calculations tab in the right order, please?
    Attached Images Attached Images

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

    Re: Drag down a formula

    Can't tell from your snapshot but here are some basics to go by.
    =A2 when dragged down will become =A3, and when dragged right will become =B2
    =$A2 when dragged down will become =$A3 and when dragged right will become =$A2 the $ before the column locks in the column.
    =A$2 when dragged down will become =A$2 but when dragged right will become =B$2 the $ before the row locks in the row.
    =$A$2 when dragged down or dragged right will stay locked on A2 as the $ before the column AND the row locks in the cell.
    hope that helps.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23
    Thank you for you answer, but unfortunately it does not help

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Drag down a formula

    I recommend uploading a small representative sample workbook (not picture) of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  5. #5
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Re: Drag down a formula

    Here is a sheet with a sample
    so I did the 3 first ones manually but I highlighted the cells who are wrong
    There are thousands of references so I need to find a solution
    One of the lead was to reference the cell number, but I haven't found a way yet
    Attached Files Attached Files
    Last edited by Perlapimpim; 05-31-2019 at 10:14 AM.

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

    Re: Drag down a formula

    try this in C3 of the ref tab... =IF(A3="",INDEX(Calculations!$A$2:$A$47,ROUNDUP(ROW(A1)/3,0)),"")

    EDIT, actually in B3 then dragged down, got confused with where I put it instead of your results.
    Last edited by Sam Capricci; 05-31-2019 at 09:32 AM.

  7. #7
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Re: Drag down a formula

    Thank you so very much Sambo Kid!!! it's very helpful

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

    Re: Drag down a formula

    You're welcome! Don't forget to mark the post as solved if that takes care of your issues using the thread tools dropdown at the top of this post.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Drag down a formula

    Try this.
    ARRAY formula in 2nd row then copy down.

    =IFERROR(IF($A2<>"","",IF(SUM(OFFSET($A2,0,0,-3))=0,"",INDEX(Calculations!$A$2:$A$47,MAX($A$2:$A2)-ROW($A$2)+1))),"")

    How ARRAY formula is entered

    Paste Formula in the cell.
    Press F2
    Hold Shift+ Ctrl Keys and hit Enter key.
    Now the formula is surrounded by {} by excel.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. How to disable drag auto-fill, but allow drag shift-entire-row?
    By superlative in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2019, 06:13 PM
  2. [SOLVED] Drag CONCATENATE Formula or other formula till last cell in the spreadsheet
    By E5254730 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2017, 10:51 AM
  3. Replies: 5
    Last Post: 04-22-2017, 05:09 PM
  4. [SOLVED] Can I create a formula and drag the cell and duplicate the formula?
    By attroll in forum Excel General
    Replies: 10
    Last Post: 11-28-2016, 01:14 PM
  5. [SOLVED] Drag down formula
    By tsakta13ole in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2016, 05:28 AM
  6. Not able to drag formula...
    By thmsjlmnt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2013, 11:24 AM
  7. Replies: 4
    Last Post: 09-29-2006, 01:51 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