if cell = "Its a One" then cut from previous cell, last 8 characters and paste in next cell

Karl Adcock

New Member
Joined
Jul 10, 2010
Messages
19
Hello all
A B
2 │ *CIP STOPPED DUE TO HEPA FAULT* │ 0 │ 00:00:00 Its a One

I would like to cut the last 8 characters from the cell in column A if the text in column B reads "Its a One" for each time "Its a One" appears in column B and paste it in column D

I have "Its a One" in column B so that I can choose the rows from which I want to cut the last 8 characters from.

Any help greatly appreciated.

Karl Adcock
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
What do you want to put in column D if the statment is not true? Assuming you want to put a blank string use this formula in column D.

=if(B2="Its a One",right(A2,8),"")

Alan
 
Upvote 0
Thanks for the reply. I was hoping to do this from vb as I have numerous rows that contain the 8 characters that require moving.
 
Upvote 0

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

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