filter 2 columns and put in a single column

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
343
Office Version
  1. 365
Platform
  1. Windows
I have these 2 tables sheet 1(incoming and outgoing). If I input the date in K2 (sheet 2), it will filter the number from both tables that match the dates. I want the filtered number from both tables to place in a single column. thank you so much

Please note that the data from sheet 1 (incoming and outgoing) is dynamic.

Book2
ABCDEFGHIJK
1SHEET 1SHEET 2
2INCOMINGOUTGOINGEXPECTED RESULTDATE:29-03-23
3DATENUMBERDATENUMBERNUMBER
429-03-23100129-03-2320011001
529-03-23100229-03-2320021002
629-03-23100329-03-2320031003
729-03-23100429-03-2320041004
829-03-23100529-03-2320051005
929-03-23100629-03-2320061006
1029-03-2310071007
1129-03-2310081008
1229-03-2310091009
1329-03-2310101010
1429-03-2310111011
1529-03-2310121012
1629-03-2310131013
172001
182002
192003
202004
212005
222006
23
24
Sheet1
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
as you have version 365
how about
=VSTACK(FILTER(B4:B100,A4:A100=K2),FILTER(E4:E100,D4:D100=K2))
need just to change the range to match sheet names

Book1
ABCDEFGHIJKLM
1SHEET 1SHEET 2
2INCOMINGOUTGOINGEXPECTED RESULTDATE:45014Vstack & Filter
3DATENUMBERDATENUMBERNUMBER
445014100145014200110011001
545014100245014200210021002
645014100345014200310031003
745014100445014200410041004
845014100545014200510051005
945014100645014200610061006
1045014100710071007
1145014100810081008
1245014100910091009
1345014101010101010
1445014101110111011
1545014101210121012
1645014101310131013
1720012001
1820022002
1920032003
2020042004
2120052005
2220062006
23
Sheet1
Cell Formulas
RangeFormula
M4:M22M4=VSTACK(FILTER(B4:B100,A4:A100=K2),FILTER(E4:E100,D4:D100=K2))
Dynamic array formulas.
 
Upvote 0
Solution
as you have version 365
how about
=VSTACK(FILTER(B4:B100,A4:A100=K2),FILTER(E4:E100,D4:D100=K2))
need just to change the range to match sheet names

Book1
ABCDEFGHIJKLM
1SHEET 1SHEET 2
2INCOMINGOUTGOINGEXPECTED RESULTDATE:45014Vstack & Filter
3DATENUMBERDATENUMBERNUMBER
445014100145014200110011001
545014100245014200210021002
645014100345014200310031003
745014100445014200410041004
845014100545014200510051005
945014100645014200610061006
1045014100710071007
1145014100810081008
1245014100910091009
1345014101010101010
1445014101110111011
1545014101210121012
1645014101310131013
1720012001
1820022002
1920032003
2020042004
2120052005
2220062006
23
Sheet1
Cell Formulas
RangeFormula
M4:M22M4=VSTACK(FILTER(B4:B100,A4:A100=K2),FILTER(E4:E100,D4:D100=K2))
Dynamic array formulas.
thanks man..it worx.. really appreciated
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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