I'm trying to use the function IF to write in another cell.
I have cell A2, if cell have text "test". I want the cell B2 have text "good" else "bad" BUT the IF function MUST be in the cell B3.
So I tried in cell B3:
=IF(A2 = "test"; B2 = "good"; B2 = "bad")
But nothing happens, cell B2 is normal.
Can somebody help me?
Related
any body know how to modified number the formula
=A1
=A Number based cell value
example if I put cell B2 =2
Cell A2 = A(value B2)
or formula cell A2 is =A2
I am looking for a formula or connection in excel where if cell A2 has value entered should copy the same value into cell D2 , now enter new value into cell A2 , should add this new value in cell D3 or else D2 but still retaining the earlier value to D3 .Overall all the values entered in the cell A2 should keep storing in Column D .
For example, there is some value in cell B1 of my worksheet, and cell C1 is empty (there's no value in it). I would like excel to populate cell C1 with the value in cell B1 if C1 is empty. If cell C1 is not empty (i.e. there's some value in it), then I would like Excel to do nothing. The same goes for D1 and E1... if they are empty, I would like Excel to populate them with the value in cel B1; if not, then do nothing. Can you please show me how to do this? Thanks for your help.
You can make use of VBA
Firstly you need to use Worksheet_Change or Workbook_Sheetchange to keep track of changes.
Get the value of the Cell C1 and B1
If C1.value = NULL, then C1.value = B1.value
You need to write the code by yourself.
I have data in A1 in 'sheet1'.
I have data in A1 and C1 on 'sheet2'.
The result and formula will be in cell B1 in 'sheet1'.
I need the formula in cell B1 on 'sheet1' to match up A1 (sheet1) to A1 on sheet2 (that's the easy bit! I can do that no problems with the lookup and reference tab) but instead I want the return value to match up A1 on sheet2 but return the value from C1 on sheet2 instead.
I can't do this, please help?
Perhaps =VLOOKUP(A1,Sheet2!A:C,3,FALSE)
How can I reference a cell from a different cell?
For eg:
I want to reference Cell A1 = B1, But dont want any formulas/logic in Cell A1. The formula/logic can be in any other cell.
How can I do this?
If you want to change a cell value without having a formula in the same cell, you'll likely need to use VBA. For example:
At Wrox Programmer-to-Programmer, Maccas posts the following example:
Sub UpdateVal()
ActiveSheet.Range("A5").Value = ActiveSheet.Range("B5").Value
End Sub
One question that comes to mind however, is why you don't want a formula in cell A1?
Something like =IF(some_condition, B1, "") would leave cell A1 blank unless it met some condition, but populate it with B1's value otherwise.