Display message (via formula) if 2 values on Tab 4 are not on Tab 6

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
Hi all

I am in need of help - I have Tab 4 and Tab 6 in my workbook.

Following specific criteria I need a message to be displayed in Column M, if certain criteria are NOT met.

I need the formula to compare the Product ID, and Attribute, IF Column F is "ADD" and Column K is "ABC".

If there Product ID AND the attribute are NOT, I want it to say "Type ABC - Not on Tab 6"

I am usingthe following formula, but it does not appear to try and match both values in the same row
Excel Formula:
=IF(AND(F2="Add",$K2="ABC",(ISERROR(AND(MATCH(C2,'TAB 6'!$D:$D,0),MATCH(E2,'TAB 6'!$F:$F,0))))),"Type ABC- Needs To Be Added Onto Tab 6","")


TAB 4
Column C - Product IDColumn D - Product NameColumn E - AttributeColumn F - Add/RemoveColumn K - TypeColumn M - ERROR
12345HorseHoove SizeAddABC
12346PonyHoove SizeAddABCType ABC - Not On Tab 6
12346PonyFur/Hair ColourAddXYZ
12345HorseTail ColourAddABCType ABC - Not On Tab 6

TAB6
Column D - Product IDColumn E - Product NameColumn F - AttributeColumn G - Add/RemoveColumn H - Type
12345HorseHoove SizeAddABC
12346PonyFur/Hair ColourAddXYZ
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This worked for me in a dummy workbook I created.

Excel Formula:
=IF(AND($F2="Add",$K2="ABC"),IF(COUNTIFS('Tab 6'!$D:$D,$C2,'Tab 6'!$F:$F,$E2)<1,"Add to Tab 6",""),"")
 
Upvote 0

Forum statistics

Threads
1,215,529
Messages
6,125,343
Members
449,219
Latest member
Smiqer

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