Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
422
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all!

I am currently comparing values in two sheets to each other to see if they are similar or dissimilar.

I have this setup at the moment:

1666959537680.png


My formula is: =IF(COUNTIFS('[CONFIDENTIAL - NUMBER.xlsx]Sheet1'!$T$2:$T$1712;E2;'[CONFIDENTIAL - NUMBER.xlsx]Sheet1'!$R$2:$R$1712;A2)=1;"yes";"no")

I refer to this sheet to see if the value is also located there:

1666959609593.png


As you can see, the date is also there, and so is the amount.

Please note that I realize that the date is written differently, HOWEVER when I click on the cell, it is written like this in the formula bar:

1666959647760.png

I have also done individual checks by going IF(A2=R2;"YES";"NO") and IF(E2=T2;"YES";"NO") and they both return "YES". So the values are indeed identical in the two sheets, but for some reason my IF(COUNTIFS) formula is not working.

I have tried to rewrite my formula 10 times and have used it successfully in the past, so I truly do not understand what is going on and why it is returning "No" for me?

Can somebody please help? I believe that @RoryA helped me get this formula originally, so would truly appreciate his assistance as well :)

Thank you all!

Kind regards,
Jyggalag
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
What happens if you remove the =1 from the end of the countifs formula
 
Upvote 0
Solution
Update: I tried making the formula but where i ONLY marked the necessary cells:

1666960287595.png


Now it returns "Yes". However, please note that I obviously need to mark the entire area in the other sheet and not just the cells in row 1075. No idea why this is happening?? So weird!
 
Upvote 0
Th
What happens if you remove the =1 from the end of the countifs formula
This worked!!!

Thank you so much Fluff!

Wow. Silly me haha

I guess it was because it might find the date 01-06-2022 and value 3000 two times or more, which makes the count > 1

Didn't think about that!

Thank you! You've made my day A LOT easier :)
 
Upvote 0
try this
Excel Formula:
=IF(COUNTIFS('[CONFIDENTIAL - NUMBER.xlsx]Sheet1'!$T$2:$T$1712,E2,'[CONFIDENTIAL - NUMBER.xlsx]Sheet1'!$R$2:$R$1712,A2)=1,"yes","no")
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,641
Members
449,461
Latest member
kokoanutt

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