IF cell A1 contains 'H' then insert 'A' into cell B1 if it does not.......

AJW1100

Board Regular
Joined
May 17, 2010
Messages
59
Office Version
  1. 2010
Platform
  1. Windows
IF cell A1 contains 'H' then insert 'A' into cell B1 if it does not then do nothing.
The above reverse
IF cell A1 contains 'A' then insert 'H' into cell B1 if it does not then do nothing.
This is for Home and Away matches that reverse each year, one year it's a Home game the next year it's an Away game. I can then easily reverse them, copy the results and paste in C as values, then delete A and B columns. I hope that's right!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about a formula for Column B:

=IF(A1="H", "A", IF(A1="A", "H", ""))
 
Upvote 0
Solution
Thank you for your help, due to a sudden problem I have not been able to test it out on my spreadsheet, but I am sure it will do what I need.
 
Upvote 0
Glad to help, Let us know if you have any issues.
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,532
Members
449,169
Latest member
mm424

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