Share via

Moving data with IF statement

Anonymous
2022-10-05T11:10:19+00:00

Can an IF statement be created to move a value from one cell to another? To better explain, I need "if J5 is less than 0, then move value to K5" in cell K5. I also need "if J5 is greater than 0, move value to L5" in cell L5.

Can someone help me create that If statement?

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2022-10-05T12:55:28+00:00

A formula cannot really move a value, but it can display a value depending on a condition.

In K5:

=IF(J5<0, J5, "")

In L5:

=IF(J5<0, "", J5)

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2022-10-05T13:05:14+00:00

    Thanks for the help.

    Was this answer helpful?

    0 comments No comments