Flag Column if Matches 1 record

smusayev

New Member
Joined
Apr 9, 2018
Messages
3
Hello,

I have a table of Visit information for various customers.
I need to identify what we consider as our customer, which means that if the customer visited our store (Store1)
In the Table below I need to get the column OurCustomer

Customer IDStoreVisit DateStore1OurCustomer
Jon1Store14/1/2018YY
Jon1Store23/26/2018NY
Jon1Store211/20/2017NY
Doe1Store23/15/2018NN
Doe1Store22/10/2017NN
Jane1Store12/10/2018YY
Jane1Store13/20/2015YY

<tbody>
</tbody>

Please help how I can achieve the above result.

I am a newbie in excel and working with excel 2010.

Thank you
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Welcome to the Board!

Let's say that the data table you posted above is in cells A1:D8, where row one is your headers.
Then place this formula in cell E2 and copy down for all rows:
Code:
=IF(COUNTIFS(A$2:A$8,A2,D$2:D$8,"Y")>0,"Y","N")
This returns that values you are showing in bold.
 
Upvote 0
Welcome to the Board!

Let's say that the data table you posted above is in cells A1:D8, where row one is your headers.
Then place this formula in cell E2 and copy down for all rows:
Code:
=IF(COUNTIFS(A$2:A$8,A2,D$2:D$8,"Y")>0,"Y","N")
This returns that values you are showing in bold.

Thank you it worked
 
Upvote 0
You are welcome!
 
Upvote 0

Forum statistics

Threads
1,215,049
Messages
6,122,864
Members
449,097
Latest member
dbomb1414

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