Filter and Index match range if some condition match

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
HI All,

Thanks in advance,

we have two sheet and want some result

First Sheet
Example.xlsx
ABC
1O NoDatedesc
265859521-07-2015o is still pending
3359624621-07-2015o is sent to us
465894710-07-2015o is pending due to stock
562547808-07-2015O is in dispatch process
Sheet1


Second Sheet
Example.xlsx
ABCD
1I DateStatusTrackComment
221-07-2015on rent359624/A5recd very good
328-07-2015booked3596246/A68recd order again
410-07-2015update soon658595/65best of luck
505-07-2015housefull359624/154Agreat product
605-07-2015housefull359624/154Aorder again
Sheet2


We want the following

(1) if Sheet1!A2 is matched with Sheet2!C2:C6 then copy the entire row value to Sheet1! From E (in Sheet2!C3:C6, value will match if we get the Data/Value before the symbol "/" )
(2) want to get only data which is not match as per point 1 (in the above sheets Sheet2!A6:D6 data is not matched with sheet1!A2:A5, so we need this data in sheet3)

Help pls
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How about this

Book1
ABCDEFGH
1O NoDatedesc
265859521/07/2015o is still pending42195update soon658595/65best of luck
3359624621/07/2015o is sent to us42213booked3596246/A68recd order again
465894710/07/2015o is pending due to stockNANANANA
562547808/07/2015O is in dispatch processNANANANA
6
7I DateStatusTrackComment
821/07/2015on rent359624/A5recd very good
928/07/2015booked3596246/A68recd order again
1010/07/2015update soon658595/65best of luck
1105/07/2015housefull359624/154Agreat product
1205/07/2015housefull359624/154Aorder again
13
14
15
16Sheet 3
17
1842206on rent359624/A5recd very good
1942190housefull359624/154Agreat product
2042195update soon658595/65best of luck
21
22
Sheet1
Cell Formulas
RangeFormula
D2:G5D2=IFERROR(INDEX($A$8:$D$12,LARGE(IFERROR(SEARCH(A2,$C$8:$C$12)^0*ROW($A$1:$A$5),FALSE),1),{1,2,3,4}),"NA")
A18:D20A18=INDEX($A$8:$D$12,AGGREGATE(15,6,1/1/NOT(ISNUMBER(MATCH(C8:C12,F2:F5)))*ROW($A$1:$A$5),ROWS($A$1:A1)),{1,2,3,4})
Dynamic array formulas.
 
Upvote 0
not working, just copy and paste your answer, find the below

Book1
ABCDEF
1O NoDatedesc
265859521-07-2015o is still pendingNA
3359624621-07-2015o is sent to usNA
465894710-07-2015o is pending due to stockNA
562547808-07-2015O is in dispatch processNA
6
7I DateStatusTrackComment
821-07-2015on rent359624/A5recd very good
928-07-2015booked3596246/A68recd order again
1010-07-2015update soon658595/65best of luck
1105-07-2015housefull359624/154Agreat product
1205-07-2015housefull359624/154Aorder again
13
14
15
16Sheet 3
17
1842206
1942213
2042195
Sheet1


help pls
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,592
Members
449,089
Latest member
Motoracer88

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