Pull multiple columns of data based on extracted data

Sleepingsouls

New Member
Hi guys,

Another tricky one (for me anyways), I have to pull data out of one work sheet into another based on a certain criteria (which is basically yes or no). I am already aware of how to do what is essentially a vlookup for multiple returns but my problem is I have 6 columns and I can't use the same formula for them because it will move the corresponding data up to the first cell.

My formula for Column X is =IFERROR(INDEX(Sat!\$E\$8:\$E\$36, SMALL(IF((\$I\$1=Sat!\$AA\$8:\$AA\$36), MATCH(ROW(Sat!\$AA\$8:\$AA\$36), ROW(Sat!\$AA\$8:\$AA\$36)), ""),ROWS(\$A\$1:A4))),"")

Column Y cannot have the same formula as there will not always be information in the next column (Sat!E has the current data Sat!F will not always have data next to it) which means when F does have information I need returned it will move upwards and appear next to the wrong data in column X

E.g

Sat! (worksheet 1)
 E F G Client X No Client B No Client 1 Yes Client 2 Yes Internal Internal Yes Internal Internal Yes

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>

Reporting (Worksheet 2)
 X Y Client 1 Client 2 Internal Internal Internal Internal

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>

There are actually 6 Columns I need the data from and potentially others that aren't right next to each other like in this example. I just can't figure out how to do it without over complicating it.

Thank you

Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Sleepingsouls

New Member
I'll Also need some help smooshing all that data together (All days of the week located under each other) after we figure this out.

alansidman

Well-known Member
Why not just filter the data on column G and copy and paste the resulting into columns X and Y. Use the Built in Filter located on the Data Tab of the Ribbon

Last edited:

Sleepingsouls

New Member
I can't do that because the data in G is actually set by time

alansidman

Well-known Member
I don't know what this means

I can't do that because the data in G is actually set by time

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

1,164,530
Messages
5,837,904
Members
430,520
Latest member
VenkateshRajaganesan

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.

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

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