In a nutshell, I have the following table:
I am using the reference to A2 cell in A15 cell and I am trying the B15 and C15 to show the appropriate numeric values showin in B2 and C2.
How can I archieve it?
Click on B15. In the cell border, drag the square to the bottom right over to C15 and let go. Done.
This question belongs on SuperUser
Theres an easy way to do it
set A15 = A$2
select A15, while clicking A15's lower right corner drag the cursor(cursor will change into a '+') to C15, values will automatically filled in.
Related
Suppose, in Cell A1 of Sheet2 I use this formula.
=AVERAGE(Sheet1!A1:A10)
Now when I drag down from A1 to A3
A2 will be =AVERAGE(Sheet1!A2:A11)
A3 will be =AVERAGE(Sheet1!A3:A12)
However I want it in a transpose way. Such as,
A2 will be =AVERAGE(Sheet1!B1:B10)
A3 will be =AVERAGE(Sheet1!C1:C10)
Means, I will use drag down rather than dragging to side, yet I'll get the answer in transpose way, more specifically, I want to change column index rather than changing row index by dragging a formula down.
Is there any way to do that?
Thanks in advance.
One way is to use this formula in Sheet2 A1 and copy down
=AVERAGE(OFFSET(Sheet1!$A$1,,ROW()-1,10))
As you drag it down, ROW()-1 increases by 1 and this is the column offset from A1.
In A1, ROW()-1 returns 0 so there is no offset, but as you go down this increases by 1 and this is the column offset from A1 - so in row 2 this becomes B1 etc.
The 10 indicates the size of the relevant range to be averaged.
In A1 enter:
=AVERAGE(INDEX(Sheet1!$A$1:$Z$10,1,ROW()):INDEX(Sheet1!$A$1:$Z$10,10,ROW()))
and copy downward.
If you need more than 26 items, increase the Z in the formula.
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
I have some value in cell a1 and these formulas in other cells:
in cell a2: =$a$1+1
in cell a3: =$a$1+2
in cell a4: =$a$1+3
when I select cells a2:a4 and drag down until cell a7 in order to fill the formulas with continuation of the same logic, I get same formulas:
in cell a5: =$a$1+1
in cell a6: =$a$1+2
in cell a7: =$a$1+3
Instead of:
in cell a5: =$a$1+4
in cell a6: =$a$1+5
in cell a7: =$a$1+6
Is there a way to achieve this result by dragging?
Try this in A2:
=$A$1+Row(1:1)
Now as you drag down the Row(1:1) will change to Row(2:2),Row(3:3) and so forth. Thus adding the needed number.
Your sample may have been over-simplified but this should work in A2.
=$A1+1
Dragged down it will result in,
=$A2+1
=$A3+1
(etc)
You can do this without the formulae as well. Since what you want is basically an increasing series by 1, under your cell A1; enter your value in A1 (e.g. 2.3618), and hold the Ctrl button on your PC (not sure about Mac), and drag the bottom right corner of the cell A1 downwards as far as you want. (Also known as Fill Series)
PS: This doesn't work if A1 has irrational numbers (like sqrt(2), pi(), etc.)
Alright so I have a question and need assistance.
I need to check if the value on cell A1 (sheet 1) is available in coloumn 1 (sheet 2). If YES, cell A2 (sheet 2) should turn green, if NO, cell A2 (sheet 2) should remain blank/colourless.
Please help me on this at the soonest.
Thanks,
Ibrahim
In cell A2 on Sheet2, put in the formula:
=IFERROR(VLOOKUP(A1,Sheet2!Range,1,FALSE),0)
Range: As you want it. Eg. A1: A100, A1: A10000 etc
Explanation:
The Vlookup formula is used to see if the value in A1 is in the range you selected on Sheet2. IfError is to put in the value of 0 in case the value isn't there in Column1 of Sheet2
On cell A2 now, Goto Home> Conditional formatting > Highlight Cell Rules > Equal to > 1
Then you can select the type of color you want from the subsequent box.
Then if the value in cell A1 is in Column 1 of sheet2 you would have the color of cell A2 turning to what you had selected above.
Depends on exactly what you mean by "available". Let's assume you mean Sheet1 / Cell A1 is a formula, and you want to ensure the formula was able to evaluate, that is, not result in a #VALUE! or other error.
Then you need a conditional format. Click on sheet 2, Cell A2. From the Home ribbon, choose Conditional Format -> Manage Rules... and choose New Rule. Tell Excel you want the bottom option, "Enter as the formula to decide which cells to format" then enter for the formula:
=NOT(ISERROR(Sheet1!$A$1))
and click OK. Set the format by going to the "Fill" tab, where you choose whatever color. Other variations are possible: =ISNUMBER(Sheet1!$A$1) to ensure cell A1 contains a number, ISTEXT(), etc. Is that enough detail?
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.