Search row for certain cell with text and copy that data from below that cell to another sheet

theowi

New Member
Joined
Mar 13, 2020
Messages
3
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
Hello Hey

I'm looking for help on how i can get data from a cell that's sometimes not in the same cell sometimes move to a different one and then i want the data that's below that data cell to be copied over to another sheet. Looking for a formula to do that.

Example
Post TimeDC DespRouteStop
13 -- 13:3014 -- 04:4361681
13 -- 13:3014 -- 04:4761691
13 -- 13:3014 -- 04:5361702

Looking for the data that's below "Route" Title to appear on a different sheet but sometimes that data with the "Route" title is on a different place so i don't want to change the formula every time.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Welcome to the MrExcel board!

Is this what you mean?

theowi 2020-03-14 1.xlsm
ABCD
1Post TimeDC DespRouteStop
213 -- 13:3014 -- 04:4361681
313 -- 13:3014 -- 04:4761691
413 -- 13:3014 -- 04:5361702
Sheet1


If using Excel 365, which I note you have, and your particular version has the FILTER function, you could try the formula in A1 below. It should automatically 'spill' the other results down the column.

For all versions, you could try the formula in C1 below and copy down.

theowi 2020-03-14 1.xlsm
ABC
1RouteRoute
261686168
361696169
461706170
5 
Sheet2
Cell Formulas
RangeFormula
A1:A4A1=FILTER(INDEX(Sheet1!A1:Z10,0,MATCH("Route",Sheet1!1:1,0)),INDEX(Sheet1!A1:Z10,0,MATCH("Route",Sheet1!1:1,0))<>"")
C1:C5C1=IFERROR(INDEX(Sheet1!A$1:D$4,ROWS(C$1:C1),MATCH("Route",Sheet1!$1:$1,0)),"")
Dynamic array formulas.
 
Upvote 0
Hey Peter...

Someone i am struggling... Sorry for not giving you enough proper information..

So its like this so i changed the formula trying to make it work but didn't not sure what i am doing wrong

=IFERROR(INDEX(Plan_Import!R$1:U$4,ROWS(S$2:S2),MATCH("Route",!$2:$2,0)),"")

So the part in blue will be changing because "Route" wont always be in the column. Changes daily (Sometimes its in Column R then another day in column T)
1584347688791.png


The sheet the data range is "Plan_Import" and the sheet I'm working from is "Import2"

Oh yes i am using Google Sheets
 
Upvote 0
Oh yes i am using Google Sheets
In that case, I am unable to help as I only deal here with Excel questions.

Also, since this was posted in the Excel Questions forum, readers would be expecting the question to be about Excel. So I am also moving your thread to the
General Excel Discussion & Other Questions forum as its subtitle states "This forum is for Excel-related discussion and questions concerning programs other than Excel or Access. "
 
Upvote 0

Forum statistics

Threads
1,223,666
Messages
6,173,664
Members
452,527
Latest member
ineedexcelhelptoday

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