Match Debit and Credit in different columns

askall1000

Board Regular
Joined
Jan 3, 2019
Messages
58
Office Version
  1. 2016
Platform
  1. Windows
Hello to all,

I need a help of a easy problem but could not solved with IF, AND or OR function. Any help will be appreciated. My required aim is match the debit and credit, if they match in third column (Target) TRUE will be shown. Thank you very much in advance and sorry to upload photo because working laptop not allow add-ins for excel.

DebitCreditTarget
54.022,61​
TRUE​
54.022,61​
TRUE​
173.251,71​
TRUE​
173.460,82​
TRUE​
97.756,96​
TRUE​
209,11​
FALSE​
97.756,96​
TRUE​
251.854,34​
TRUE​
251.854,34​
TRUE​
251.854,34​
TRUE​
251.854,34​
TRUE​
67.210,40​
TRUE​
67.210,40​
TRUE​
38.672,89​
TRUE​
38.672,89​
TRUE​
1.152,80​
TRUE​
1.152,80​
TRUE​
97.365,97​
TRUE​
97.365,97​
TRUE​
64.773,06​
FALSE​
10.685,31​
FALSE​
162,84​
FALSE​
141,60​
FALSE​
509,76​
FALSE​
2.561,39​
FALSE​
16.017,91​
FALSE​
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi

put this formula in Target col row 2 and pull down as far as needed

=IF(OR(COUNTIF(A:A,B3)>=1,COUNTIF(B:B,A3)>=1),TRUE,FALSE)

note your sample has TRUE for 173.251,71 AND 173.460,82 which isn't correct
 
Upvote 0
Solution
Hi

put this formula in Target col row 2 and pull down as far as needed

=IF(OR(COUNTIF(A:A,B3)>=1,COUNTIF(B:B,A3)>=1),TRUE,FALSE)

note your sample has TRUE for 173.251,71 AND 173.460,82 which isn't correct
Thank you very much for your help, it is what i needed.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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