Is this kind of formula possible?

Jrroskom 0 Reputation points
2025-12-05T15:36:59.6766667+00:00

I use excel a lot. I'm decent but not a pro with formulas. Can a formula like this, be made so the row number changes depending on what row it is pasted into? =CONCAT("CP-",K7,".",N7,L7). Can that be made so when I paste it into let's say, row 56 it would turn the 7 into 56 automatically? I have several formulas like this saved on another workbook and would like them to automatically change the row numbers when pasted over.

Microsoft 365 and Office | Excel | Other | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Q&A Assist
    2025-12-05T15:37:20.7733333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Yes, the formula you provided can automatically adjust the row number when pasted into a different row in Excel. This behavior is due to Excel's relative referencing feature. When you use a formula like =CONCAT("CP-",K7,".",N7,L7) and paste it into another row, Excel will automatically change the row references to match the new row number.

    For example, if you paste the formula into row 56, it will change to =CONCAT("CP-",K56,".",N56,L56). This allows you to maintain the same formula structure while applying it across different rows without needing to manually adjust the row numbers.

    If you want to ensure that certain references remain constant (for example, if you want to always refer to K7), you can use absolute references by adding dollar signs, like this: =CONCAT("CP-",$K$7,".",N7,L7). In this case, K7 will not change when you paste the formula into another row.

    Overall, your formula will work as intended when pasted into different rows, adjusting the row numbers automatically.

    0 comments No comments

0 additional answers

Sort by: Most 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.