Formula or Macro to extract Data

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
I have the follow data in Col A

I need a formula or macro to do the following

1) The years after notes must be extracted/copied to Col C & D in the same row
2) R R -each of these to be extracted/copied to Col C & D


I have manually extracted the data o sow what it should look like


Book2
ABCD
1Notes 2020 201920202019
2R RRR
Sheet1



It would be appreciated if someone could kindly assist me
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Thanks for the reply

See larger sample below-hope this helps

Book5
ABCD
1BR1 LTd STATEMENT OF COMPREHENSIVE INCOME
2for the year ended 28 February 2020
3Notes 2020 2019
4R R
5Revenue12144864.66213244.18
6Cost of sales-115719.54-177804.63
7Gross profit29145.1135439.54
Sheet1
 
Upvote 0
Book2
ABCD
1BR1 LTd STATEMENT OF COMPREHENSIVE INCOME
2for the year ended 28 February 2020
3Notes 2020 201920202019
4R RRR
5Revenue12144864.66213244.18
6Cost of sales-115719.54-177804.63
7Gross profit29145.1135439.54
Sheet1
Cell Formulas
RangeFormula
C3C3=--MID(A3,FIND(" ",A3,1)+1,(FIND(" ",A3,FIND(" ",A3,1)+1))-(FIND(" ",A3,1)+1))
D3D3=--TRIM(MID(A3,FIND(" ",A3,FIND(" ",A3,1)+1)+1,LEN(A3)))
C4C4=TRIM(MID(A4,1,FIND(" ",A4,1)-1))
D4D4=TRIM(MID(A4,FIND(" ",A4,1)+1,LEN(A4)))
 
Upvote 0
Solution
Many thanks Radoslow

Your formula's works perfectly
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

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