$ in formula doesn't stay fixed when pasting - excel-formula

enter image description here
When I try to drag out the formula in the D column it copies the formula except it doesn't keep the d8 fixed in the other cells. Instead it uses d9 d10 d11 etc

You have to lock the row D$8 or lock the cell $D$8. Probably you want the latter one.

Related

Why can't I drag my formula down-giving an "inconsistent formula" error

I am not able to drag my formula down the column as I usually would. If I change the cell below the first one in the column to reference A6, it gives me an inconsistent formula error, and when I copy everything down it just repeats referencing A5 and A6 instead of
TEXT('[PV by Contract 09.30.2022.xlsx]PV by Contract'!$A$5,"00000")

Two input cells equal to each other

Is it possible to create two input cells that are equal to each other without VBA code eg. A1 = A5 and A5 = A1. So when I change the value of A1 it affects A5 and change in A5 makes A1 change too.
No, it is not. It will require VBA.
A cell can have a formula or it can have a user supplied value but not both.
The only way is VBA.
You can have a third cell, say B1. Then have the user change B1 and equate A1 and A5 to B1:
=B1
Then the user only needs to change one cell and the others will update.
Strictly speaking it is possible, if the sheet is set to use iterative calculation, with using =B1 in A5 and =A5 in B1. However entering data in either cell will overwrite the formula, so would only work the one time.

Formula to take two columns' unique values and paste them into one

I know how to copy one column, then the other, and paste them into a column then remove duplicates. But I want one formula that does this. Is it even possible?
Here is a typical 3 column formula that you can adapt to your needs:
With data in A1 through C10, in D1 enter:
=A1
In D2 enter the array formula:
=INDEX($A$1:$C$10,INT(SMALL(IF(COUNTIF(D$1:D1,$A$1:$C$10)=0,ROW($A$1:$C$10)+(COLUMN($A$1:$C$10)*0.01)),1)),100*MOD(SMALL(IF(COUNTIF(D$1:D1,$A$1:$C$10)=0,ROW($A$1:$C$10)+(COLUMN($A$1:$C$10)*0.01)),1),1))
and copy down:
Array formulas must be entered with Ctrl + Shift + Enter rather than just the Enter key.
From:
Coderre Formula
Here is another one that works on the two columns but sorts it in a different order.
=IFERROR(INDEX($A$1:INDEX(A:A,MATCH("ZZZ",A:A)),MATCH(0,COUNTIF($D$1:D1,$A$1:INDEX(A:A,MATCH("ZZZ",A:A))),0)),IFERROR(INDEX($B$1:INDEX(B:B,MATCH("ZZZ",B:B)),MATCH(0,COUNTIF($D$1:D1,$B$1:INDEX(B:B,MATCH("ZZZ",B:B))),0)),""))
Being an array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting Edit mode. If done correctly then Excel will put {} around the formula.
This formula must be entered in the second row. If you want your list to start in the first row then in the first cell put: =A1 then put the above formula in the second row, hit Ctrl-Shift-Enter, then copy/drag down.

Excel: Apply a formula to a column to "print" a row

I'm having data set up as:
A1
A2
A3
and so forth and I want to make a formula in Excel which present them row-wise instead:
A1 A2 A3
How do I do this? I've tried to use the formula
=$A1
And drag that out, but it simply presents the data as $A$1 (i.e. it simply copies the value in A1 into all columns of the row.
You need =TRANSPOSE() formula, but it's tricky:
Enter =TRANSPOSE(A1:A3) to cell say B1.
Select three cells with a mouse: B1:D1.
Press F2 key and enter edit mode.
Press Ctrl+Shift+Enter.
Voila!
COPY all your data and PASTE as TRANSPOSE, simple as that ;)
You can find more information here: http://www.techrepublic.com/blog/microsoft-office/transpose-excel-data-from-rows-to-columns-or-vice-versa/
*EDIT: I might have misunderstood the question. If I did let me know and I will remove my answer.

Autofill not working as expected in Excel

I'm using Excel 2003 and I'm trying to autofill a basic formula but it's not working properly for me.
The formula I'm trying to drag accross takes the value in B2 and adds it to the previous cells value. So the value in F10 is E10+B2 etc. I entered it manually for the first 7 cells and then when I try and drag it accross it starts to reference cells C2, D2, E2 etc. when it should just stay B2.
It does this even though I highlighted a group of previous cells where B2 clearly remains the same.
How to get around this?
You need to tell Excel to use an absolute cell. When you copy the formula across, the E10 cell changes to F10, G10 etc. Problem is though, the B2 reference changes to C2, D2 etc. To fix, change it to $B$2 - this will prevent horizontal copying from changing the B. It will also prevent vertical copying from changing the 2.

Resources