Formula to extract a unique list of values from a row

smide

Board Regular
Joined
Dec 20, 2015
Messages
162
Office Version
  1. 2016
Platform
  1. Windows
Hello.

In row 2, cells A2:C2 and E2:F2 I have product values and in cells H2:I2 'adjusted' product values. I need to compare those two ranges (A2:F2 and H2:I2) and to extract unique 'adjusted' values in cells J2 and K2, if there are such a values of course.

example.

A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
1​
Results​
Results​
2​
2​
3​
5​
8​
4​
1​
3​
1
3​
4​
12​
9​
19​
25​
11​
20​
11
20
4​
67​
98​
33​
22​
54​
33​
54​

explanation: row 2 - comparing A2:F2 with H2:I2 only number 1 in cell H2 is unique so result in cells J2 and K2 is 1 and blank cell
row 3 - both numbers in H3 and I3 are unique, results in cells J3 and K3 are 11 and 20
row 4 - neither of cell values in cells H4 (33) and I4 (54) are unique (they already exist in range A4:F4) so both result-cells J4 and K4 are blank
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Simple option:
Book1
ABCDEFGHIJKLM
2ResultsResults
3223584131 
434129192511201120
5467983322543354  
Sheet1
Cell Formulas
RangeFormula
L3:L5L3=IF(COUNTIF(A3:G3,I3)<1,I3,"")
M3:M5M3=IF(COUNTIF(A3:G3,J3)<1,J3,"")
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,741
Members
449,050
Latest member
excelknuckles

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