Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Compare two cells, if equal move a third cell to another cell
Need a formula to compare the content of two cells and if equal, move (copy)
the content of a third cell to another cell. Any help would be appeciated. Mike |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Compare two cells, if equal move a third cell to another cell
Hi,
Excel formula can't 'push' data to another cell they can only 'Pull' data from cells so may be this =IF(A1=B1,C1,"") Mike "Mike" wrote: Need a formula to compare the content of two cells and if equal, move (copy) the content of a third cell to another cell. Any help would be appeciated. Mike |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Compare two cells, if equal move a third cell to another cell
Say we want to test if A1 equals A2, then copy A3 to A4
Try this short macro: Sub surphace() Set r1 = Range("A1") Set r2 = Range("A2") Set r3 = Range("A3") Set r4 = Range("A4") If r1.Value = r2.Value Then r3.Copy r4 End If End Sub -- Gary''s Student - gsnu200822 "Mike" wrote: Need a formula to compare the content of two cells and if equal, move (copy) the content of a third cell to another cell. Any help would be appeciated. Mike |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Compare two cells, if equal move a third cell to another cell
Formulas cannot move or copy.
You would need a fourth cell with a formula like =IF(A1=B1,C1,"not equal") Note: minimal error-trapping in the formula posted. To actually copy or move you would need VBA Gord Dibben MS Excel MVP On Tue, 30 Dec 2008 11:09:01 -0800, Mike wrote: Need a formula to compare the content of two cells and if equal, move (copy) the content of a third cell to another cell. Any help would be appeciated. Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
compare cells and sum if equal | Excel Worksheet Functions | |||
Cells equal to another cell a certain # over | Excel Discussion (Misc queries) | |||
How do I compare cells and if FALSE compare to next cell in EXCEL | Excel Worksheet Functions | |||
Formula to move cursor when 2 cells equal | Excel Discussion (Misc queries) | |||
How do I make a cell equal to another cells value and not it's fo. | Excel Worksheet Functions |