How can I find all rows where a value exists and put the rows into a new table?

statiCat

New Member
Joined
Apr 21, 2018
Messages
19
If I have two tables, table A (1st table) and Table B (2nd table), and I want to find rows where the ID columns match but either the currency or amount don’t match….how would I do this?I can find where the IDs exist in both tables (col J) by:
=IF(ISNA(INDEX($A:$A,MATCH($F:<wbr>$F,$A:$A,0)))=FALSE,$F:$F,"")
Then if J is not "":
=IF($J:$J<>"",1,0)
So J tells me there is a match but I need to replace 1 somehow to say: if value exists in both, find all rows where it exists and put it into a new table. I would also need to be able to tell if the row came from table A or table B. Any Ideas?


0
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
=IF(ISNA(INDEX($A:$A,MATCH($F:$F,$A:$A,0)))=FALSE,$F:$F,"")

that may not be working quite as you expect it to. The 1st argument in MATCH needs to be a single cell (or typed in entry), not a range.

You probably need something like INDEX/SMALL/IF array function
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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