+ Reply to Thread
Results 1 to 4 of 4

Reference Rows/Columns based on a formula

  1. #1
    Registered User
    Join Date
    03-27-2022
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2

    Question Reference Rows/Columns based on a formula

    Hello,

    I need to work out a way to make certain formulae reference rows and columns based on a formula for a school assessment mark book.

    When I copy a block of text (say 45 rows), I want most of the row references to increment by 45, as is the usual with Excel. However, I want some of the references to only increment by 1, as that data refers to a marksheet on a different page, where each student's marks are entered in on that student's row, which naturally increment by 1.

    The scores for each question are entered horizontally from C11 to BL11 on a separate sheet, with the row function used to make it read the horizontal data vertically as $A1 copies downwards to $A2, $A3 etc.

    I want the next student's formula to contain "(Marksheet!$C$12:$BL$12,ROW($A1))", but since the vertical scoresheet is 45 rows tall, the row references will increment by 45 instead of 1, and I have to manually correct the first cell before copying downwards for every student.

    I was hoping there was a way to reference a row within a cell reference using a formula, such as "=Marksheet!$A(=1+[Cell])", where the specified [Cell] would contain some kind of ceiling function that divides by 45 to increment by 1 for each student.

    Is this possible?

    Many thanks!
    Attached Images Attached Images
    Last edited by XLMaths; 03-28-2022 at 12:36 PM. Reason: Solved

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Reference Rows/Columns based on a formula

    it's generally better to post files as people can illustrate using a working example however, as you say, the key is to create the correct integer to pass to the INDEX

    =INDEX(Marksheet!$C:$BL,11+CEILING(ROW(A1)/45,1),1+MOD(ROW(A1)-1,45))

    so as the above is applied / copied down, it will pull the 45 marks from C:BL for each row, incrementing from row 12 for the first 45 rows, then 13 for next 45 etc

  3. #3
    Registered User
    Join Date
    03-27-2022
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Reference Rows/Columns based on a formula

    I can't post the file as it contains student information.

    But thank you - this works as I intended.

    Also, good choice of username.

  4. #4
    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
    79,383

    Re: Reference Rows/Columns based on a formula

    FYI: We never expect you to share sensitive data, but usually a desensitised, cut-down sample workbook is helpful.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    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.

+ 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: 6
    Last Post: 03-18-2022, 05:32 AM
  2. formula to extract multiple rows based on reference
    By Sam D in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 06-21-2018, 02:21 AM
  3. [SOLVED] Looking for formula help. Cross reference rows and columns?
    By Bus in forum Excel General
    Replies: 13
    Last Post: 07-06-2015, 06:55 AM
  4. Replies: 7
    Last Post: 08-05-2014, 05:34 AM
  5. Dragging Formula Down Rows, Changing Array Reference Across Columns
    By mpayne29 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-14-2013, 03:52 PM
  6. Replies: 1
    Last Post: 08-21-2012, 02:46 PM
  7. Replies: 0
    Last Post: 01-05-2005, 09:31 AM

Tags for this Thread

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