Multiple match criteria in different columns to return the unique value

Some videos you may like

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.

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,087
If your case number is an actual number, try the N2 formula. If it's a text value, try the N3 formula.

Book1 (version 1).xlsb
ABCDEFGHIJKLMN
1CaseVar1Var2Var3Var4Var1Var2Var3Var4Case
211.2100424751.510004450023
321.21004250023
431.210042550
541.210044475
651.210044500
761.210044550
871.2100042475
981.2100042500
1091.2100042550
11101.2100044475
12111.2100044500
13121.2100044550
14131.510042475
15141.510042500
16151.510042550
17161.510044475
18171.510044500
19181.510044550
20191.5100042475
21201.5100042500
22211.5100042550
23221.5100044475
24231.5100044500
25241.5100044550
26
Sheet20
Cell Formulas
RangeFormula
N2N2=SUMIFS(B:B,C:C,J2,D:D,K2,E:E,L2,F:F,M2)
N3N3=INDEX(B:B,AGGREGATE(15,6,ROW(B2:B25)/(C2:C25=J2)/(D2:D25=K2)/(E2:E25=L2)/(F2:F25=M2),1))
 

HUPAXE

New Member
Joined
Jun 1, 2011
Messages
10
Wow Eric. Never imagined I'd be able to use the sumifs here. Since all rows are unique this totally works and is quite simple too.
Thank you very much.

-B
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,087
Yes, that is a clever, unexpected use of SUMIFS that someone (not me) thought up.

Glad to help! Thanks for the feedback. :cool:
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,168
Messages
5,509,558
Members
408,743
Latest member
1245585

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top