Is there a way in Excel 365 to reference a cell in a formula and lock it so that if I drag the referenced cell it does not change the cell reference in the formula?
I am using a spreadsheet to build a custom deck of cards, the last column uses =TEXTJOIN(" ", TRUE, G2, A2). The problem is that if I drag the first card data down to G8 and A8 the last column's formula will change automatically to =TEXTJOIN(" ", TRUE, G8, A8). I want the last column's formula to remain referenced to G2 and A2 even when I move the data and even an absolute reference will change when I move the data.
If I fill in the form normally then H displays correctly.
If I want to rearrange my cards in a different order and drag the data in A4:G4 to A8:G8 then the formula in H4 will change to displaying the text in G8 and A8 instead of remaining to display the original text in row 2 and the formula in row 8 is now errored.
Perhaps convert your data to a table using Ctrl + T, and then modify your formula to the following:
=TEXTJOIN(" ",TRUE,[#Name],[#['# In Deck]])
Related
I have to calculate the value of cells A1 till A10 and it takes values from M21, N21, O21, and so on till V21.
How can I write a formula to calculate the same?.
I tried =M$21 to keep row 21 constant, but while dragging the formula down from A1 till A10, it doesn't change the column ref as it's dragging down.
How can I change the column reference to change while dragging the formula down from A1 till A10?.
I would index across the columns based on the current row:
=INDEX($M$21:$V$21,ROW())
use in google sheets:
=INDIRECT(ADDRESS(21, ROW(A13))
dragging this down will give you N21, O21, P21, etc.
I have linked cells P11 to P17 with the cell E9 and formula for that I used is highlighted in image.
If I want make another control type, I will simply copy rows (8to17) and paste it in rows (19to28),
so in this case, do we have any formula, such a way that, the Type 1B should automatically referred and displayed in cells P22 to P27
This formula would go in P11 and it assumes that the copy area is always 11 offset by 11 rows as your example suggests.
=INDEX(E:E,INT((ROW($ZZ1)-1)/11)*11+9)
In P11, put :
=OFFSET(INDIRECT(CELL("address",P11),TRUE),-2,-11)
and in P12 put this and drag downwards... :
=P11
As for the 2nd set, 1st row (in P22) , just copy the 1st formula and paste. you should get :
=OFFSET(INDIRECT(CELL("address",P11),TRUE),-2,-11)
As for 2nd row (P23), do same as above).. put : =P22 and drag downwards.
Idea : 1 cell 'defines' the reference, by a fixed offset, the rest refers top value.
I have a vague memory doing this a year back and want to repeat the function. I want to use B2 as a reference to my formula, where my formula is reading in values from another tab and can be expanded by dragging and dropping. My picture is trying to illustrate the issue,
The pink cells are not using the reference cell B2, heading Formula 1 show the formula in column B.
The blue cells is what I have now, column D is the results from the formula in column E (row by row). Here I have created the formula in cell D4 and then dragged it down to D6.
The green cell is what I want to achieve, note the discrepancy marked in red.
I want to be able to write the formula in cell D4 and then drag it down to D6. How can this be done without adding new columns.
Use this:
=INDIRECT("'" & $B$2 & "'!C" & ROW())
I added '' around the sheet name in case the sheet name in B2 contains spaces.
I know how to link on cell to another so that its content changes to match the source cell.
I know how to transpose a row into a column.
Is there any way to transpose a row into a column with links that dynamically adjust to match their source?
Try locking your cell references before transposing them. Turn your formula from:
=B2
to
=$B$2
If you do not add the $ to the row and column part of the cell address, the address will change during the transpose operation.
In my example, I filled the cells A1 to E1 with their a1 to e1 to match their cell address. In the row below, I put =$A$1 in A2 and so on to =$E$1 in E2. You will notice the formula for E2 in the formula bar from this screen shot:
I then selected the cell for the top of my transposed column (in my case C4) and right clicked and selected paste special: (note there is a short paste transpose, but I cold not get the right click menu to screen shot)
And here we see the transposed column with the formula in C4 is =$A$1 and the formula in C8 is =$E$1
When one "Fills right in excel" , the Column name updates
eg.
1st cell
is
=A2
If I fill right the next cell will be =B2
But rather than the column incrementing I want to increment the row number
so 1st cell is
=A2
The cell on its right is
=A3
how do i do that?
If you're putting the first formula in B2 then
=OFFSET($A$2,COLUMN()-2,0)
The -2 part is because we're starting in column B. You need to change it for whatever column you're actually starting in such that the second argument equal zero.
You can do this using the INDIRECT function. Suppose we want formulas in cells B1, C1, D1... that should reference A2, A3, A4... Starting in cell B2 we can enter:
=INDIRECT("R[" & COLUMN(RC)-1 & "]C1", FALSE)
In cell B2, this will render as:
=INDIRECT("R[1]C1", FALSE)
In this situation, I'm using R1C1 format. The second parameter to the INDIRECT function tells the function to use R1C1 format. The function itself (again in cell B2), says "give me what is in the cell that is one row down and the first column". In the original formula, by basing the row value on the current column number, it will update the formula to a new row as you fill right.
Now, if you are asking if there is a way to do this using the GUI like say using the Fill box with the mouse, the answer is no. There is no means to transpose the fill using the GUI.