between two condition any one condition match then get the value

Vishaal

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

we have the following two sheets

one is
Book1
ABCDE
1
2USA01-02-20206740508tet@gmail.com
3AUS01-02-20208521625usto@gmail.com
4IND01-02-20200053313pos@gmail.com
5NEW01-02-20202991119spam@gmail.com
Sheet1


second is
Book1
ABC
1
2jk-5567729900can@gmail.com
3jk-5547729902usto@gmail.com
4jk-5576740508bhub@gmail.com
5jk-5520053313
Sheet2


we want to check if from sheet 2, b2 or c2 any one value match with Sheet1!B2:E5 then it will copy the value from column Sheet2!A

result sheet is
Book1
ABCDEF
1
2USA01-02-20206740508tet@gmail.comjk-557
3AUS01-02-20208521625usto@gmail.comjk-554
4IND01-02-20200053313pos@gmail.comjk-552
5NEW01-02-20202991119spam@gmail.com
Sheet1


help pls
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try:

Book2
ABCDEF
1
2USA1/2/20206740508tet@gmail.comjk-557
3AUS1/2/20208521625usto@gmail.comjk-554
4IND1/2/202053313pos@gmail.comjk-552
5NEW1/2/20202991119spam@gmail.com 
Sheet1
Cell Formulas
RangeFormula
F2:F5F2=IFERROR(INDEX(Sheet2!$A$2:$A$5,MATCH(D2,Sheet2!$B$2:$B$5,0)),IFERROR(INDEX(Sheet2!$A$2:$A$5,MATCH(E2,Sheet2!$C$2:$C$5,0)),""))
 
Upvote 0
Thanks Eric W bro

but its matching blank also
 
Upvote 0
I don't understand what you mean. I assume you're getting some incorrect result. Please show an example and I'll look at it.
 
Upvote 0
pls check the below sheets

Sheet1
1.JAN.20 TO 31.JULY2020.xls
ABCD
1
2
301-01-2020AST52780
401-02-202038624350AST52546
501-02-2020AST52780
601-03-202080051229AST52546
Contact Details


Sheet2
1.JAN.20 TO 31.JULY2020.xls
ABCD
1
2AST52496Item 184-2625004sstm@gmail.org
3AST52546Item 2523422
4AST52780Item 3
5AST52809Item 4ddy12@gmail.com
Sheet1


its giving the wrong result.

help pls
 
Upvote 0
I'm more confused than ever. Neither of the sheets you show in post 5 matches the sheets you showed in post 1. Moreover, neither one shows the formula, with or without a correct result. I don't know what you want.
 
Upvote 0
I'm more confused than ever. Neither of the sheets you show in post 5 matches the sheets you showed in post 1. Moreover, neither one shows the formula, with or without a correct result. I don't know what you want.

Sorry Eric W Bro,
i will check and update and take care this in future

i have just checked it and really sorry
 
Upvote 0

Forum statistics

Threads
1,214,531
Messages
6,120,073
Members
448,943
Latest member
sharmarick

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