Comparing a unique ID + corresponding dollar value

GuineaPug

New Member
Joined
Apr 7, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Relatively new to formulas in Excel and trying to figure out how to match 2 values and then check their corresponding price in the next column.

In the example table below:

- Col A contains Unique ID 1, while Col B contains the corresponding price for Unique ID 1
- Col C contains Unique ID 2, while Col D contains the corresponding price for Unique ID 2
- Col E is to check if there are duplicates of Unique IDs between Col A and Col C, which could happen in this scenario I'm trying to recreate. I would need to know if a duplicate exists.
- Col F is to check if, in the case of any match(s) of Unique IDs between Cols A and C, there are then corresponding match(s) of price for the given Unique ID.

Hope the above is clear but please let me know if not!

I have filled out the expected results for Column E and F manually, however I'm not sure what formulas I would need to actually return those values automatically. Any help for this newbie would be much appreciated :)

Unique No.1PriceUnique No.2PriceDuplicates?Price Match(s) found?
82362​
$100​
885658​
$150​
YesYes
2563252​
$565​
2563252​
$565​
NoYes
5346​
$500​
6437​
$890​
NoYes
4234​
$766​
5346​
$500​
YesYes
6437​
$890​
4234​
$745​
NoNo
36432​
$150​
5346​
$500​
YesYes
885658​
$677​
82362​
$100​
NoYes
6363​
$533​
36432​
$200​
NoNo
885658​
$677​
YesYes
6363​
$533​
NoYes
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You have 2 x 885658 and 2 x 5346 in Unique No.2. What do you mean by "Unique"?
 
Upvote 0
You have 2 x 885658 and 2 x 5346 in Unique No.2. What do you mean by "Unique"?
Sorry! I should have clarified. Col A contains truly unique IDs - there won't be duplicates in this column. Col C however can contain duplicates of those IDs.
 
Upvote 0
Sorry! I should have clarified. Col A contains truly unique IDs - there won't be duplicates in this column. Col C however can contain duplicates of those IDs.
In column E - Duplicates - you have several "No"s, but every ID in column C can be found in column A. I'm not following your logic, could you elaborate?
 
Upvote 0
Based entirely on your image in post #1, see if the following is what you're after. Just adjust the ranges to suit.

Book1
ABCDEF
1Unique No.1PriceUnique No.2PriceDuplicates?Price Match(s) found?
282362$100885658$150YesNo
32563252$5652563252$565NoYes
45346$5006437$890NoYes
54234$7665346$500YesYes
66437$8904234$745NoNo
736432$1505346$500YesYes
8885658$67782362$100NoYes
96363$53336432$200NoNo
10885658$677YesYes
116363$533NoYes
Sheet1
Cell Formulas
RangeFormula
E2:E11E2=IF(COUNTIF($C$2:$C$11,C2)>1,"Yes","No")
F2:F11F2=IF(D2=VLOOKUP(C2,$A$2:$B$11,2,FALSE),"Yes","No")
 
Upvote 1
My take on this.
Fluff.xlsm
ABCDEF
1Unique No.1PriceUnique No.2PriceDuplicates?Price Match(s) found?
282362£100885658£150YesNo
32563252£5652563252£565NoYes
45346£5006437£890NoYes
54234£7665346£500YesYes
66437£8904234£745NoNo
736432£1505346£500YesYes
8885658£67782362£100NoYes
96363£53336432£200NoNo
10885658£677YesYes
116363£533NoYes
Lists
Cell Formulas
RangeFormula
E2:E11E2=IF(COUNTIFS(C:C,C2)>1,"Yes","No")
F2:F11F2=IF(SUMIFS(B:B,A:A,C2)=D2,"Yes","No")
 
Upvote 1
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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