Compare numbers in columns in two tables

whynot

Board Regular
Joined
Jun 27, 2009
Messages
118
Office Version
  1. 365
Platform
  1. Windows
I have two tables. One has four columns the other has three columns. I need to compare and determine if the numbers in column 4 in table 1 are included in column 3 in table 2. If the numbers are in both columns, i would like the output to be "yes". Pictures of the tables are below. The columns i am trying to compare are circled in yellow. Thank you. 1714184032582.png1714184065710.png

Table 1
1714184032582.png


Table 2

1714184065710.png



 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try:
Excel Formula:
=IF(ISNUMBER(MATCH([@[Expense Amount]],Table2[CC],0)),"yes","no")
 
Upvote 0
Thank you for the suggestion, but unfortunately, it did not work. i am likely doing something wrong.

here is the formula i used. =IF(ISNUMBER(MATCH([@Charged],Expensed[@[Expense Amount]],0)),"yes","no")

column 1 has the formula. This is table 1 and i have pasted Table 2 after Table 1.

1714235900369.png


1714235979358.png
1714235900369.png1714235979358.png
 
Upvote 0
Your "Charged" column is left aligned indicating that those are texts instead of numbers. Turn it to numerical type, then it should work.
 
Upvote 0

Forum statistics

Threads
1,215,632
Messages
6,125,909
Members
449,274
Latest member
mrcsbenson

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