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?
Last edited by XLMaths; 03-28-2022 at 12:36 PM.
Ipswich, Suffolk (England), but grew up in Sawley, Derbyshire
MS 365 Subscription Insider Beta Channel v. 2301 (Windows 11 22H2 64-bit)
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" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.
Forum Rules (updated September 2018): please read them here.
How to use the Power Query code you've been given: help here. More about the Power suite here.