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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
6,246
Office Version
  1. 365
Platform
  1. Windows
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
 

Karl Adcock

New Member
Joined
Jul 10, 2010
Messages
19
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,133,714
Messages
5,660,426
Members
418,580
Latest member
JP82

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
Top