Swap Cells based on Cell value

RedOctoberKnight

Board Regular
Joined
Nov 16, 2015
Messages
150
Office Version
  1. 2016
Platform
  1. Windows
Good Morning,

I was wondering if anyone had any ideas on how to swap the contents of two cells based on 3rd cells value?

For example Currently: A1=CAT, B1=DOG. If C1 ="SWITCH", THEN A1=DOG AND B1=CAT.

If C1 Changes again to something other than "switch" , then A1=CAT and B1=DOG again....

Any help would be much appreciated.

Thanks,
 
Thats is a very good point. May have to rethink my tactic.

Hopefully I'm not being too needy but my I ask another question?
What if i wanted to switch the contents of two cells that are in the same column? But have it switch with a specified cell based on a cell value.

For example,

ABCD
JimCatBobSWITCH
DanDog
BobBird
GregCat

So basically, if I put Bob in column "C" and put "SWITCH" in column "D", it would switch the contents of column B between Jim and Bob

ABCD
JimBirdBobSWITCH
DanDog
BobCat
GregCat

Hopefully that makes sense.

Thank you for all your help so far.
Sure, you can ask more questions.
But it is probably best to ask it in a new thread, as it is a new/different question.
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

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.
Go back
Back
Top