How match duplicate entry

Pizzaman22

New Member
Joined
Apr 18, 2021
Messages
13
Office Version
  1. 365
Hello, I was looking for help on how to match the following
A. B. C.
Address | House Items | Received item
123john_street | Spoon | Yes
123john_street. | Fork. | Yes
123john_street | Knife | Yes
255john_street. | Apron. | No

So, what I need it’s to do is
Only Exact match “123john” so the first (6 characters) and if already the exact “address” took any items from “house items” previously then provide a “yes” or “no” value in the “received item” Column.

Any help would be great! Thanks!
 
You still haven't clarified why the first row is "Yes". Going by the logic you describe, it should be "No".

Book1
ABC
1AddressItemReceived
2123john_street SpoonNo
3123john_street. ForkYes
4123john_street KnifeYes
5255john_street. ApronNo
Sheet7
Cell Formulas
RangeFormula
C2:C5C2=IF(SUM(COUNTIFS(A$1:A1,LEFT(A2,6)&"*",B$1:B1,{"Spoon","Fork","Knife"})),"Yes","No")
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Jason's right, your first result should be "No"

Book3.xlsx
ABC
1123john_street Spoon No
2123john_street. Fork. Yes
3123john_street Knife Yes
4255john_street. SpoonNo
5444john_street. knifeNo
6255john_street. Fork Yes
Sheet916
Cell Formulas
RangeFormula
C1:C6C1=IF(COUNTIFS(A$1:A1,LEFT(A1,6)&"*",B$1:B1,"<>")>1,"Yes","No")
 
Upvote 0
Thank you guys, your actually right, I missed that, the first should be no. Thanks so much for the help!!!! :)
 
Upvote 0
Ok I have a last question (haha)
If I were to count how many “john123” forks he took for today’s current date and spit that out on A new column, how would I do that? Use the count function?
 
Upvote 0
Well, obviously, we'll need a column with dates associated with when the item was taken.
And Yes, COUNTIF or COUNTIFS would do.
 
Upvote 0
Thanks for the fast reply. Yes I have a date Column now.
If have
(Qty Column) E2=COUNTIF(B2:B10, {"Fork”,"Spoon",”knife”}))
 
Upvote 0
That formula won't work as-is you'll need to SUM the COUNTS

Excel Formula:
=SUM(COUNTIF(B2:B10,{"Fork","Spoon","knife"}))

But what about factoring in the Name, and Dates??

If you need help with the formula, post some sample data.
 
Upvote 0
Your just awesome, thank you so much. I am very new to this so please forgive my ignorance.
So I put the date in the “E” Column and address in the “A” column .
So if 123John_street (A) on today’s date (E) took two forks (B) then in column “ E” would say 2 for example
 
Upvote 0
It would be best if you can post some sample data.
So do you want the Count for Today Only, or a Total?
Also, I'm not sure if you need to actually list out "Fork", "Spoon", "Knife", etc. as in my formula in Post #12, Unless there may be something Else in Column B you Don't want counted?
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,742
Members
448,989
Latest member
mariah3

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