Jyggalag

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

I am very rusty in Vlookup (embarassing!) and I am currently looking at this data:

1660729632717.png


I would like to create a formula that checks the same date in column A, as checked in column F and then tells me whether or not the value for this date is also present in my data set in columns F-G.

I would cell H2 to return "VALUE IS PRESENT" (and for example for cell H16 to return "VALUE is NOT present", where the values, as visually seen, are different).

I know that I need to create some sort of IF(VLOOKUP) formula, but I am not sure how?

Does anybody know? Or have an alternative better formula?

Would be highly appreciated!!!

Thank you all! :)

Kind regards,
Jyggalag
 
Yes - that's the point of COUNTIFS. ;)

It would be much simpler if you didn't post pictures of your data and formulas so that we have to retype everything...

Excel Formula:
=IF(COUNTIFS($A$1:$A$20;F1;$B$1:$B$20;G1)=0;"Not OK";"OK")
Quick update:

I tried it in the real sheet and it returns #VALUE now

Do you know if I made an error?

This is my formula (it links between two excel documents, so a bit long due to that)

=IF(COUNTIFS('[Sheet 3 1865300 (1).xlsx]Sheet1'!$J$32:$J$250;A3;'[Sheet 3 1865300 (1).xlsx]Sheet1'!$L$32:$L$5935;E3)=0;"NOT OK";"OK")
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Your ranges aren't the same size. You only go up to row 250 in the first and 5935 in the second.
 
Upvote 0
A
Yes - that's the point of COUNTIFS. ;)

It would be much simpler if you didn't post pictures of your data and formulas so that we have to retype everything...

Excel Formula:
=IF(COUNTIFS($A$1:$A$20;F1;$B$1:$B$20;G1)=0;"Not OK";"OK")

A picture of the error:

1660738165934.png


And the data it pulls from (column J is dates in the other sheet and column L is the amount):

1660738238563.png
 
Upvote 0
Your ranges aren't the same size. You only go up to row 250 in the first and 5935 in the second.
Embarassing! This fixed it!

Thank you so much Rory! You're my excel-hero :D
 
Upvote 0
Hi Rory,

Sorry for disturbing you so many times. I promise this will be the last time :)

Regarding the formula (which is amazing by the way):

=IF(COUNTIFS('[Sheet 3 1865300 (1).xlsx]Sheet1'!$J$32:$J$250;A82;'[Sheet 3 1865300 (1).xlsx]Sheet1'!$L$32:$L$250;E82)=0;"NOT OK";"OK")
Your ranges aren't the same size. You only go up to row 250 in the first and 5935 in the second.


I actually two columns of dates, and I want to check it for both to see if I get a match

However, adding another criteria wont work, as it will want both of these criteria to be a success (and it's fine if it matches just one date). I imagine I have to use an OR formula incorporated into this, but i'm not sure how. Can you help me out? :-)

I would like to check if there is a match in Column J (dates) OR in column K (also dates) alongside the amount (column L). Column L HAS to match, but it is fine if column J does not match as long as column K does or vice versa

Does that make sense? Would be amazing! :)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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