you can also use a formula for this.
=if(celllocation=criteria, newvalue,celllocation)
substitute the cell address, criteria and newvalue for the names above.
Phiore,
When I use your formula I get a 'circular reference' error. This is due to trying to leave the value of the
'test' cell when the 'criteria' is not met. Any other ideas
PS. I am not a VB programer This message was edited by Puntarenas on 2002-05-02 16:19
Anno,
Sorry taken so long to reply (traveling).
Basically, what I am trying to do is to leave the value of the cell being tested intact unless the value of another cell matches a criteria
Ex.
A2= 8
A5= Y
I want to test cell A2 so that if A5 = Y change the value to 10 else leave 8.
Does this help?
JAC
Adrian,
Thank you for your response. You almost had it right. Using your example:
For the value of A2:
If A5 = 'Y' then place the value of '10' in A2 else place whatever the current value of A5 in A2.
JAC This message was edited by Puntarenas on 2002-06-10 12:58 This message was edited by Puntarenas on 2002-06-10 12:59 This message was edited by puntarenas on 2002-07-11 17:01
This is my question also. I want to test the value of a cell. If it is void, empty, my If statement will be true and text will be entered. If it is false, ie there is text or numbers in the cell, (and there ussally will be), I want it left alone. Something like
a b c
1
2 45 $1 1
3 46 $2 2
IF(A1="","Page " &C2". do nothing
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.