Trying to drag down a sum if formula but keeping the same range

Sarah Saleh 0 Reputation points
2026-11-04T15:41:55.7933333+00:00

Hi,

I am using the below formular.

User's image

How can I make it so the "C1" drags down to C2, C3 etc without having to do it one by one??

Sorry if this is a silly question I just can't seem to manage it.

I have a lot of different codes to use so would take me a while!

I also need to figure out how to not repeat this process every month but the range will change every month. Would there be a quicker way of doing this at all please??

Many thanks,

Sarah

Microsoft 365 and Office | Excel | For education | Windows
0 comments No comments

4 answers

Sort by: Most helpful
  1. Barry Schwarz 6,431 Reputation points
    2026-11-06T18:00:47.2166667+00:00

    Now that we know "C1" is a value and not a reference, we can solve that piece of the problem. You originally said the values run in sequence: C1, C2, etc. The Excel function CONCAT can build such a sequence in successive rows. You tell the function what character(s) form the prefix (for example C) and the number of the row above the first occurrence. For example, if your formula starts in row 12, your would call CONCAT("C",ROW()-11). In row 12, this function would evaluate to "C1". As you copy it down, it would evaluate to "C2", "C3", ... in successive rows. Your formula in row 12 would be

    
    =SUMIF('Invoices 26-27'!$F$48:$F$75,CONCAT("C",ROW()-11),'Invoices 26-27'!$J$48:$J$75)
    

    As you copy the formula down, the actual text of the formula remains unchanged. But when the formula is evaluated, the second argument which calls CONCAT will evaluate to the successive strings you want. Change the "11" to the row before your first formula and then copy it down as far as you need.

    If your values do not run in sequence, there are other approaches that will let you enter the values only once and select the one you want to use in each of a sequence of formulas.

    You also mentioned needing to handle monthly updated. We need more information. Nothing in your previous posts mentioned dates or data segregated by dates. Tell us what data in your workbook identifies what date applies to an entry.

    It would be very helpful if you could provide a screen shot with a few rows of data. If the actual data is sensitive, realistic dummy values would work just as well.

    Was this answer helpful?


  2. Barry Schwarz 6,431 Reputation points
    2026-11-06T17:36:19.54+00:00

    Now that we know "C1" is a value and not a cell reference, we can solve that part of the problem. You originally said the values are sequential, C1, C2, etc. There is an expression that will construct such a sequence as you copy the formula down a column. It depends on the row where you enter the first formula. For sake of an example, assume this formula is in row 12. Then the formula you want is

    
    =SUMIF('Invoices 26-27'!$F$48:$F$75,CONCAT("C",ROW()-11),'Invoices 26-27'!$J$48:$J$75)
    

    That CONCAT

    Was this answer helpful?

    0 comments No comments

  3. Igihozo Gady 80 Reputation points Independent Advisor
    2026-11-04T16:06:16.73+00:00

    Hello @Sarah,

    Thank you for contacting Microsoft Community.

    To keep your calculation ranges fixed while allowing the criteria cell to change as you drag the formula down, you can use:

    =SUMIF('Invoices 26-27'!$F$48:$F$75,C1,'Invoices 26-27'!$J$48:$J$75)

    The $ signs keep the ranges fixed, while C1 automatically changes to C2, C3, and so on when you drag the formula down.

    Regarding your monthly updates, you could also consider using an Excel Table, which automatically expands when new rows are added, reducing the need to adjust your formula ranges manually.

    To recommend the most suitable approach, could you please confirm whether you add new invoice rows to the same worksheet each month or create a separate worksheet for every month?

    I hope this helps.

    Best regards.

    Was this answer helpful?


  4. AI answer

    2026-11-04T15:42:12.7666667+00:00

    Use a relative reference for the criteria cell instead of typing "C1" as text.

    Change the formula to this pattern:

    =SUMIF('Invoices 26-27'!$F$48:$F$75,C1,'Invoices 26-27'!$J$48:$J$75)
    

    Then drag down. Excel will change:

    • C1 to C2
    • C2 to C3
    • and so on

    The ranges stay the same because of the $ signs:

    • $F$48:$F$75
    • $J$48:$J$75

    If C1 must always stay in column C while dragging down, this version is safer:

    =SUMIF('Invoices 26-27'!$F$48:$F$75,$C1,'Invoices 26-27'!$J$48:$J$75)
    

    That locks the column to C but still lets the row change as the formula is filled downward.

    For future months, the quickest approach is usually to set the formula once with the correct absolute ranges and then use the fill handle to copy it down. Excel automatically adjusts relative references when formulas are copied.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.