This should be an easy one but I cannot figure it out for the life of me. I want to change a cell's value from another cell based on an IF statement.
I have
=IF(ISNUMBER(I2/J2),"K2"=I2/J2,Null)
This formula is in L2. I'm trying to get K2 to be the value of I2/J2 but it's evaluating it as T/F.
How do I "remotely" set a cell value please?
Your formula needs to go into K2. You can't remotely set a value of another cell. In K2 put =IF(ISNUMBER(I2/J2),I2/J2,Null)
...although I'm not sure why you are testing that the result of a division is a number. It's either a number or it's an error. Perhaps =IF(ISERROR(I2/J2),I2/J2,Null) would be more appropriate.
Related
In Cell F190 I have the following formula: ='[Account 19617768.xlsx]19617768'!$G$1142 (the cell displays the value in 19617768 $G$1142 - (£1609.50)
I can display this formula in Cell J190 with the formula: =FORMULATEXT(F190)
By manipulating FORMULATEXT(F190) (i.e. Using Left(FORMULATEXT(F190),38)&(Right(FORMULATEXT(F190),4)+2), I end up with Cell J190 displaying formula: ='[Account19617768.xlsx]19617768'!$G$1144.
What I need is for Cell J190 NOT to display the formula, but the actual value in Account19617768.xlsx G1144 (£1859.50), and it's the conversion of the formula into the value I don't seem to be able to find an appropriate function
I don't have a problem if I need to use an additional function in another cell to finish off the conversion?
I know this should be easy, but having just been released from hospital, I seem to be having
trouble working the simplest things out
'$' signs in excel formula keep the preceding data static.
In other words. Remove the $ in G$1065.
Now when you drag the formula down the column the Cell number will increase.
If you keep the $ in front of G the column G will never change no matter where the formula is copied.
I am trying to create a conditional format formula to colour a cell based on the value of itself, the cell next to it on the right, and whether the cell on the first row in the same column is a weekday or not.
Currently it works correctly as follows:
=AND($A$2=0,$B$2=0,WEEKDAY($A$1)<>1,WEEKDAY($A$1)<>7)
I have a lot of cells I'd like to use this formula in, so I thought about creating a cover-all formula that used the ADDRESS function.
My original idea was to use:
=AND((ADDRESS(ROW(), COLUMN()))=0,$B$2=0,WEEKDAY($A$1)<>1,WEEKDAY($A$1)<>7)
(I've changed just one cell reference here for example, but I'd like to change all 4 if possible).
However, when I try to use ADDRESS(ROW(), COLUMN()) in place of an absolute cell reference, the formula doesn't format the cell anymore.
Is there a way to make this cover-all formula work so that I don't have to go through and change the referenced cell values each time for every cell? Am I missing something about the syntax? Or will this simply not work the way I'd like it to? Thanks in advance!
ADDRESS returns a string that looks like a cell address and "$A$2"<>0.Wrap the ADDRESS in INDIRECT or rewrite your original without absolute rows.
=AND(indirect(ADDRESS(ROW(), COLUMN()))=0, indirect(ADDRESS(ROW(), COLUMN()+1))=0, WEEKDAY($A$1)<>1, WEEKDAY($A$1)<>7)
=AND($A2=0, $B2=0, WEEKDAY($A$1, 2)<6)
Okay I'm not sure what the official name for what I want is so I will refer to it as an "if-ever" function.
Basically I want to say if a certain cell is equal to a certain value at any point then another designated cell will return a certain value if the original cell is change the designated cell will still return the same value.
An example to make this clear:
Let cell A1 be =randbetween(0,10) now refreshing the formulas will return a random integer from {0,1,2,...,10}.
Now I want to say if A1 is ever equal to 5 for instance then cell A2 will return the value 5 (or any other number/words) and will be fixed, i.e. should we then in the future change A1, A2 will still remain with the value 5 (or whatever else we used).
Hopefully this is clear what I want.
Is this even possible and how would I achieve something like this in excel?
Thanks for reading!
Just with plain excel the answer is NO.
The formulas will recalculate every time. However, with VBA it is possible.
Press Ctrl+F11 and give it a try. You need to explore the Worksheet_Change event and to make sure that it checks a specific target for the value. Then simply change the target and that's it.
https://msdn.microsoft.com/en-us/vba/excel-vba/articles/worksheet-change-event-excel
I've devised a formula that I want my cells to have, but I only want the value to show up if ANOTHER cell is populated with the value that I want.
My current formula is below:
=COUNTIFS($R$3:R21, "Brain")
However, this formula doesn't check whether or not the other cell has the value that I want to check for.
I put together a formula that I thought would check for whether or not the cell is populated:
=COUNTIFS($R$3:R21, "Brain", R21, "Brain")
Unfortunately, this formula doesn't work (it returns #VALUE!). I think it fails because R21 is already included in the COUNTIFS.
I also tried this similar formula, which also failed to work:
=COUNTIFS($R$3:R21, "Brain", R21:R21, "Brain")
I looked online and I found this possible solution:
=IF(ISNUMBER(SEARCH("Brain",R21)),"COUNTIFS($R$3:R21, 'Brain')","")
Unfortunately, this formula displays the text of the formula I want, and not the actual value of the formula.
Does anyone know how I could display the value from the formula ONLY if the cell I'm checking has the value that I want? Thanks.
Try
=IF(ISNUMBER(SEARCH("Brain",R21)),COUNTIFS($R$3:R21, 'Brain'),"")
I have this formula:
=IF(COUNTIF(testing!I:I,A6)=1,INDEX(testing!A:A,MATCH(A5,testing!I:I,0)),"wrong")
I want to control with the formula whether the mapping of values is right.
I want to know whether the value in A6 has more corresponding values in the column A in the testing sheet. So when A6 appears in the column I, I either want to know which corresponding value it has in column A, OR if he has MORE THAN ONE, I want to get wrong as an answer.
Currently there are still many cells with wrong even though it actually has only ONE corresponding value. WHY?
You are counting A6, but matching A5. Both should be the same.