+ Reply to Thread
Results 1 to 11 of 11

How can I copy an array formula down the row and maintain the row number?

  1. #1
    Registered User
    Join Date
    01-08-2017
    Location
    Lilongwe
    MS-Off Ver
    2016
    Posts
    6

    Exclamation How can I copy an array formula down the row and maintain the row number?

    This is what I'm trying to achieve,
    =INDEX('MASTER GRADES'!$C$8:$J$5003,SMALL(IF('MASTER GRADES'!$C$8:$C$18=$J$5,ROW('MASTER GRADES'!$C$8:$C$18)),ROW(1:1))-7,3)

    I want when I copy the formula above which has 11 rows into another section within the worksheet, the row number should start again with ROW(1:1)...and not ROW(12:12)...

    I hope being my first post, this makes sense? I'm new and young in excel

    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How can I copy an array formula down the row and maintain the row number?

    If I understand the request just make ROW(1:1) an absolute ROR($1:$1)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-08-2017
    Location
    Lilongwe
    MS-Off Ver
    2016
    Posts
    6

    Re: How can I copy an array formula down the row and maintain the row number?

    Your assistance will be greatly appreciated. I just don't if that's doable. Thanks

  4. #4
    Registered User
    Join Date
    01-08-2017
    Location
    Lilongwe
    MS-Off Ver
    2016
    Posts
    6

    Re: How can I copy an array formula down the row and maintain the row number?

    Hi Richard,

    I don't want ROW(1:1) to be an absolute. I intend to multiply a section of several rows without changing the row numbers of the new section which I just copied into. I have ROW(1:1) to ROW(11:11) now when I copy this section and paste it below ROW(11:11) it starts with ROW(12:12) which forces me to format the row numbers again to ROW(1:1) - ROW(11:11) and so on...

    Thanks for your quick response

  5. #5
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: How can I copy an array formula down the row and maintain the row number?

    If I understand you correctly, this should work:

    Copy the formula from the formula bar, instead of the cell itself. Then paste it as needed. That will prevent it from changing the formula relative to where it is pasted.

    So, go to the first instance, and copy that formula. Alternatively, you could have the formula somewhere else, proceeded by ' which tells excel it is text. This will allow you to copy from that cell value instead of needing to manually click into the formula bar.

    Hope this helps

  6. #6
    Registered User
    Join Date
    01-08-2017
    Location
    Lilongwe
    MS-Off Ver
    2016
    Posts
    6

    Re: How can I copy an array formula down the row and maintain the row number?

    Yea! You rock it TheN. That perfectly worked. Thanks so much. You have a great one.

  7. #7
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: How can I copy an array formula down the row and maintain the row number?

    You could also replace your ROW(1:1) with this: MOD(ROW(1:1)-1,11)+1
    Dragging that down will count to 11 then restart at 1.

    Edit: unless you particularly want to use Row, you can alsoget a repeating sequence of 1-11 by replacing your ROW(1:1) with: IF(A1=11,1,A1+1)
    This assumes that your formula is starting in A2 - amend it as necessary.
    Last edited by Aardigspook; 01-09-2017 at 01:52 AM. Reason: Add second option
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  8. #8
    Registered User
    Join Date
    01-08-2017
    Location
    Lilongwe
    MS-Off Ver
    2016
    Posts
    6

    Re: How can I copy an array formula down the row and maintain the row number?

    Thanks Aardigspook

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: How can I copy an array formula down the row and maintain the row number?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How can I copy an array formula down the row and maintain the row number?

    Quote Originally Posted by Kawinga View Post
    Hi Richard,

    I don't want ROW(1:1) to be an absolute. I intend to multiply a section of several rows without changing the row numbers of the new section which I just copied into. I have ROW(1:1) to ROW(11:11) now when I copy this section and paste it below ROW(11:11) it starts with ROW(12:12) which forces me to format the row numbers again to ROW(1:1) - ROW(11:11) and so on...

    Thanks for your quick response
    I can't help but think that you misunderstood Richard's suggestion. If you amend your existing formulas so that they use ROW($1:$1) in the first row and ROW($2:$2) in the second row and so on (or even just use 1, 2, and so on), then when you copy the formulas elsewhere they will be what you want. Admittedly you have to edit a few formulas to start with but that is not particularly time consuming.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  11. #11
    Registered User
    Join Date
    01-08-2017
    Location
    Lilongwe
    MS-Off Ver
    2016
    Posts
    6

    Re: How can I copy an array formula down the row and maintain the row number?

    That now explains and solves the whole puzzle. Thanks so much good people.

+ 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] maintain the same number of columns even without data
    By calvinfoo in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-28-2016, 04:39 AM
  2. Replies: 0
    Last Post: 06-28-2014, 02:26 PM
  3. [SOLVED] Number formatting when using an array instead of copy and paste(?)
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2014, 12:28 PM
  4. Array - Copy Formula, Paste as Array
    By lilanngel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2010, 08:20 AM
  5. How do I maintain the integrity of array in a formula...
    By daljaxon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2007, 08:27 AM
  6. How do I maintain different row heights when I copy rows down a p.
    By danlinksman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-24-2005, 04:06 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