New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

Check cell value - Results in another cell

Formulas, Functions, Formatting, Charts, Data Analysis, etc.

Check cell value - Results in another cell

Postby Donrm1 » Sat Dec 31, 2011 7:50 am

Version 2010
cell A1 has an "x"
Cell A2 checks A1 for "x"
if true place "x" in cell A3
I have tried this: if(A1="x", A3="x") This does not work

I can get the formula to work if I am in cell A3 with: if(A1="x","x")

However, I need to be able to have user put other data in A3 if "x" is not true and that would cause formulas to be overwritten anytime the value is false and they need to enter in other data. (if the value is true no other data will be entered)

So in other words: I need A to check B and report to C

(Tippung Hat) T.I.A.
Don M.
  • 0

Donrm1
Rookie
 
Posts: 6
Joined: Dec 13, 2011
Reputation: 0

Re: Check cell value - Results in another cell

Postby Sisyphus » Sat Dec 31, 2011 8:02 am

Hi,
There are no Excel formulas that can write in cells that they don't occupy themselves.
Therefore, you can't have A2 write in A3.
How about using Data Validation to check the value the user puts into A3? You can program the validation to refer to A1 and permit an entry in A3 in dependence of what is in A1.
Would that help? :D
Happy New Year!
  • 0

Have a great day! :D

Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)
Sisyphus
Former Moderator
 
Posts: 4454
Joined: Dec 7, 2011
Location: Shanghai
Reputation: 203
Excel Version: 2010

Re: Check cell value - Results in another cell

Postby Don » Sat Dec 31, 2011 8:45 am

Sisyphus is correct and the only way to achieve what you want is to use a macro.

You could use a macro like this:

Code: Select all
Sub test()
If Range("A1").Value = "x" Then Range("A3").Value = "x"
End Sub


Then, just set some event to trigger the macro to run. For instance, you could set this to run when anything is changed in the worksheet by putting it in ThisWorkbook in this sub:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

End Sub


and that would make sure the value x was input into cell A3 any time an x was input into cell A1.

hope this helps!
  • 0

Don
Moderator
 
Posts: 733
Joined: Dec 4, 2011
Reputation: 2
Excel Version: 2010


Return to General Excel Questions

Who is online

Users browsing this forum: No registered users and 272 guests

cron