MATCH Function

Relevant answer

David Horton 1 year ago

https://support.microsoft.com/en-us/office/use-conditional-formatting-to-highlight-information-fed60dfa-1d3f-4e13-9ecb-f1951ff89d7f#:~:text=1%20Select%20one%20or%20more%20cells%20in%20a,use%2C%20and%20then%20select%20a%20format.%20See%20More

0 Likes

Relevant answer

Mayukh Bhattacharya 1 year ago

Katie Bade many ways to do it, here are few alternative ways, although i wont suggest and recommend in using hardcoded values, instead creating a table of reference and using either XLOOKUP() or LOOKUP() function will be pretty faster than any other functions.


• Formula used in cell C6

=LOOKUP(B6,$K$6:$L$9)


• Formula used in cell D6

=VLOOKUP(B6,$K$6:$L$9,2,0)


• Formula used in cell E6 --> Applicable to Excel 2021/MS365, no need to fill down, it spills!

=XLOOKUP(B6:B17,K6:K9,L6:L9)


• Formula used in cell F6

=INDEX($L$6:$L$9,MATCH(B6,$K$6:$K$9,0))


• Formula used in cell G6

=IFS(B6="Ins 1",100,B6="Ins 2",225,B6="Ins 3",90,B6="Ins 4",110)


• Formula used in cell H6

=SWITCH(B6,"Ins 1",100,"Ins 2",225,"Ins 3",90,"Ins 4",110,"")


Or,

• Formula used in cell I6 --> Applicable to Excel 2021/MS365, no need to fill down, it spills!

=LET(x,{"Ins 1","Ins 2","Ins 3","Ins 4"}, y,{100,225,90,110}, XLOOKUP(B6:B17,x,y))

Or,

=LET(x,K6:K9, y,L6:L9, XLOOKUP(B6:B17,x,y))

2 Likes

Relevant answer

Gavin Downes 1 year ago

this formula will search within a string in each cell for values found in a lookup table then display the result. Yes I just wrote nonsense sentences. If the string has several found values, it will look up the last one found. Notice the last cell has h4 and h2 found in dash2

=IFERROR(VLOOKUP(TEXTJOIN(", ",1,FILTER($D$1:$D$5,ISNUMBER(SEARCH($D$1:$D$5,A1)),"")),$D$1:$E$5,2),"")

1 Like

Relevant answer

Will Taylor 1 year ago

hey Ishvar Naranji it is absolutely vague when you are saying its not valid, those formulas posted are absolutely 100% working one, and has been used time and again, tested several time, show how it is not working for you

1 Like

Relevant answer

Maddy B 1 year ago

You may try:

=let(Σ,A2:index(A:A,match(2,1/(A:A<>""))), map(Σ,scan(,Σ,lambda(a,c,a+(not(regexmatch(c,"Winter|Spring|Summer"))))),lambda(x,z,index(if(regexmatch(x,"Winter|Spring|Summer"),x,z)))))

2 Likes

Relevant answer

Rudyard Gomez 1 year ago

Just try this if it works for you.

=IF(ISNUMBER(MATCH(A3,{"Winter","Spring","Summer"},0)),A3,IF(ISNUMBER(MATCH(A2,{"Winter","Spring","Summer"},0)),MAX($B$2:B2)+1,IFERROR(VLOOKUP(A3,A$2:B2,2,FALSE),MAX($B$2:B2)+1)))

0 Likes

Relevant answer

Mayukh Bhattacharya 1 year ago

Prashant Rawat Follow the steps :

  1. For Excel 2003+ onwards : Select any cell in your table and choose Data - PivotTable and PivotChart Report.

Or Press ALT + D + P

  1. Select Multiple consolidation ranges and click Next.

  2. In “Step 2a of 3”, choose I will create the page fields and click Next.

  3. In “Step 2b of 3” specify your table range in the Range field (B2:E6 for the sample data) and click Add, then Next.

  4. In “Step 3 of 3”, select a location for the pivot table (the existing sheet should serve, as the PT is only required temporarily).

  5. Click Finish to create the pivot table.

  6. Drill down (ie double-click) on the intersect of the Grand Totals (here Cell K8 or 7):

  7. The Pivot Table may now be deleted.

  8. The resulting Table may be converted to a conventional array of cells by selecting Table in the Quick Menu (right-click in the Table) and Convert to Range. Watch the video below.

2 Likes

Hot network questions