Copy and paste between two words that you find

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
HI everyone,
so i have a tab called RAW and a tab called SALES
What i would like to do is look down RAW column a and find 03 Sales
Then find 04 Loss and copy from Row find 03 Sales to one row up from find 04 Loss
and paste values into sheet Sales cell F11
please help if you can
Thanks
Tony
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I'm not sure I follow what you want, but if you have something like this on the RAW sheet:
MrExcel_20220603.xlsx
A
1Col A Heading
2a
3b
4c
5d
603 Sales
7e
8f
9g
1004 Loss
11h
12i
13j
RAW

...and you're using Excel 365, you can extract the values between 03 Sales and 04 Loss like this in F11...and if you have an older version of Excel, the approach is G11 is an alternative:
MrExcel_20220603.xlsx
FG
10Values between
1103 Sales03 Sales
12ee
13ff
14gg
SALES
Cell Formulas
RangeFormula
F11:F14F11=LET(start,MATCH("03 Sales",RAW!$A$2:$A$1000,0),end,MATCH("04 Loss",RAW!$A$2:$A$1000,0),INDEX(RAW!$A$2:$A$1000,SEQUENCE(end-start,,start)))
G11:G14G11=OFFSET(RAW!$A$2,MATCH("03 Sales",RAW!$A$2:$A$1000,0)-1,,MATCH("04 Loss",RAW!$A$2:$A$1000,0)-MATCH("03 Sales",RAW!$A$2:$A$1000,0),1)
Dynamic array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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