+ Reply to Thread
Results 1 to 14 of 14

Need to drag a cell reference down but increment columns

  1. #1
    Registered User
    Join Date
    07-29-2019
    Location
    Los Angeles
    MS-Off Ver
    365
    Posts
    6

    Need to drag a cell reference down but increment columns

    Hi,

    I've got a formula starting with a cell reference A$3 followed by a multiplication calculation.

    I want to drag this cell down to end up with B$3 in the next row down. I'm stumped on how to do this.

    Here's the exact formula:
    =A$3*INDEX($A$1:$BG$1,ROW(A1))

    It should end up as:
    =B$3*INDEX($A$1:$BG$1,ROW(A1))
    Which I will then drag across columns to the right making C$3 D$3 etc

    I've been struggling with this for a day. Any help would be greatly appreciated.

    -paul
    Last edited by megadolphin; 07-29-2019 at 09:13 PM.

  2. #2
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: Need to drag a cell reference down but increment columns

    replace A$3 with OFFSET($A$3, 0, ROW(A1)-1), thus incrementing (1) column 0 rows as you drag down

    Sorry I can't check your entire formula without a sample workbook

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Need to drag a cell reference down but increment columns

    Like this:

    =A$3*INDEX($A$1:$BG$1,ROW($A$1))

    Your title mentions columns - why?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-29-2019
    Location
    Los Angeles
    MS-Off Ver
    365
    Posts
    6

    Re: Need to drag a cell reference down but increment columns

    Thanks, carsto.

    This does produce the correct values but it's not quite what I need. I did the same with the index function:
    =INDEX($A$3:$Z$3,1,ROW(A1))

    Unfortunately, I'm a new member and there appears to be restrictions on attachments or uploading a link to the workbook.

    In summary, I think I need to drag down cell references and not values.

    -paul

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Need to drag a cell reference down but increment columns

    Am I invisible? Did you not see my post?

    Yes, you can attach a workbook if needs be.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  6. #6
    Registered User
    Join Date
    07-29-2019
    Location
    Los Angeles
    MS-Off Ver
    365
    Posts
    6

    Re: Need to drag a cell reference down but increment columns

    Hi Ali,

    Sorry, I did reply to your post but I must have messed up somehow.

    The result I am looking for is on rows 10-12. Rows 5-7 is my attempt.

    Hopefully, there'll be an attachment this time.

    -paul
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Need to drag a cell reference down but increment columns

    Will row 3 be there? Or is that temporary?

    I'm not at all clear on the logic here.
    Last edited by AliGW; 07-30-2019 at 02:59 AM.

  8. #8
    Registered User
    Join Date
    07-29-2019
    Location
    Los Angeles
    MS-Off Ver
    365
    Posts
    6

    Re: Need to drag a cell reference down but increment columns

    Thanks, Ali,

    Row 3 is required. The challenge is the frequency between the number sequences in Row 3 is a variable.

    Scenario:
    Row 1 is ad spend at one location (which reduces over time). Row 3 is instances of a new location starting. The columns would be months. There'll be a sum of the months to produce a monthly total of ad spend.

    There's probably better logic to achieve this but in this method, Row 6 needs to offset its use of Row 3 by -1, Row 7 by -2 - we can shift the whole thing way to the right if we need to reference cells currently unavailable on the left.

    For instance, F6 needs to be multiplied by E3, G6 by E3 to produce the example on Rows 11 and 12.

    I'm not expert level, there may be a much easier way of achieving the same result.

    Hope this helps.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Need to drag a cell reference down but increment columns

    Where on earth did 41966 appear from at Y7??

    What do D1 to BG1 and D3 to BG3 have to do with anything else on the sheet?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Need to drag a cell reference down but increment columns

    Glenn - that number is the other number multiplied by three - that's where the row I was referring to comes in, I think.

    Having said this, I got no further towards getting my head around it, I'm afraid.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Need to drag a cell reference down but increment columns

    Oh yes... so it is. I still don't understand this bit, though:

    "What do D1 to BG1 and D3 to BG3 have to do with anything else on the sheet?"

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Need to drag a cell reference down but increment columns

    Me neither.

  13. #13
    Registered User
    Join Date
    07-29-2019
    Location
    Los Angeles
    MS-Off Ver
    365
    Posts
    6

    Re: Need to drag a cell reference down but increment columns

    All,

    Sorry for the confusion in the earlier workbook I posted. Ignore that going forward. I was also incorrect (in my original post) that dragging down A$3 to make B$3, C$3 etc would work. It would not. Actually the column letters would have needed to go in the opposite direction.

    I came up with a solution but it's far from ideal. Basically I used the INDEX function (CELL BP11 of attached worksheet "Ad Spend" in the workbook "advertising-array-v1.1.xlsx) This cell can be dragged up or down to fill the array.

    Although this works, the solution breaks if rows or columns are subsequently inserted or deleted.

    Here's a brief explanation of the attached file:

    On the Ad Spend worksheet:

    Row 2: Months (just numbers)
    Row 5: represents Ad Spend on one location per month. These numbers are controlled by variables on the Variables worksheet. Cell BP5 (Variables!$B$10) is the first in the sequence, (Variables!$B$11) is used at month 24 on onwards when the location is mature. Between BP5 and CM5 is a gradient reduction of ad spend.
    Row 7: Running total of locations that are open per month. These numbers are controlled by variables on the Variables worksheet, Th variables are: number of new locations (Variables!$B$15) and frequency of opening (Variables!$B$14) in months 1-24 and (Variables!$B$19) and frequency of opening (Variables!$B$14) in months 24 on onwards
    Row 9: The increment count of new locations per month in order to calculate rows 11-70
    Row 72: Sum of all 60 months ad spend for each month
    Row 74: adds the additional location whose instance initiates the process

    Cell BP11: The cell where the topic of this thread is required

    If anyone has a better solution, I would be happy to learn. Maybe my solution will be of use to someone else.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-29-2019
    Location
    Los Angeles
    MS-Off Ver
    365
    Posts
    6

    Re: Need to drag a cell reference down but increment columns

    Here's the formula:
    =INDEX($A$5:$DW$5,ROW(A68))*INDEX(A$9:DW$9,0,72-ROWS($A$1:$A4))

+ 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. Increment cell reference after nth row.
    By sjs4952 in forum Excel General
    Replies: 2
    Last Post: 08-23-2018, 05:07 AM
  2. increment cell reference value
    By ofersh in forum Excel General
    Replies: 3
    Last Post: 05-16-2018, 10:28 AM
  3. Replies: 5
    Last Post: 05-06-2015, 12:05 AM
  4. Increment cell reference
    By George.ca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2014, 11:18 PM
  5. [SOLVED] Increment Sheets, but keep cell reference the same on drag
    By Alostsoul in forum Excel General
    Replies: 7
    Last Post: 02-28-2013, 04:38 AM
  6. [SOLVED] Increment Cell Reference
    By Perry in forum Excel General
    Replies: 4
    Last Post: 03-08-2006, 04:20 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