How to Xlookup fuzzy match and standard Xlookup in the same formula?

Lacan

Active Member
Joined
Oct 5, 2016
Messages
253
Office Version
  1. 365
Platform
  1. Windows
Hello Guys,👌

Would like to Xlookup fuzzy match and standard Xlookup in the same formula.
Through my daily agenda sometimes have to write a different hour before name of customer as you can see in table below cell D4.
Even though would like to match the sales goal of customer.
Can you please help with formula to both sides?
Thank you very much Guys. 👍👍🍻🍻

Fórmula Principal para o Ficheiro VDF.xlsm
ABCDEFGHIJKL
1
2
3HORACUSTOMERSALES GOALCUSTOMERSALES GOAL
409:0009H30 JOHN DELINAJOHN3000
510:00HANNA250ELISARICKY4000
611:00ELISA900HANNASARAH6500
712:00PETER4500JACKHANNA250
813:00 JOHNELISA900
914:00 MARIADELINA1000
1015:00 PETERPETER4500
1116:00 RICKYJACK7000
1217:00 SARAHMARIA6020
1318:00 
1419:00 
15
16
Folha13
Cell Formulas
RangeFormula
H4:H14H4=SORT(Tabela8[CUSTOMER])
E4:E14E4=IFERROR(XLOOKUP(D4,Tabela8[CUSTOMER],Tabela8[SALES GOAL],0,0),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
D4:D14List=$H$4#
 
If you put some identifying character before the extra text (eg I have used a colon) then you could use something like this
You would have to adjust the table name in the formula.

Lacan.xlsm
CDEFIJ
3HORACUSTOMERSALES GOALCUSTOMERSALES GOAL
40.375JACK DE WALL : TEST IT7000JOHN3000
50.416666667HANNA250RICKY4000
60.458333333ELISA900SARAH6500
70.510H00 PETER4500HANNA250
80.541666667 ELISA900
90.583333333 DELINA1000
100.625 PETER4500
110.666666667 JACK DE WALL7000
120.708333333 MARIA6020
130.75 
140.791666667 
Sheet2
Cell Formulas
RangeFormula
E4:E14E4=XLOOKUP(REGEXREPLACE(TRIM(TEXTBEFORE(D4&":",":")),"\d.+? ","",,1),Table1[CUSTOMER],Table1[SALES GOAL],"")

Brilliant @Peter_SSs 🔝🔝👌
More than enough!
Thank you very much. 💪💪🍻
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,225,969
Messages
6,188,109
Members
453,460
Latest member
Cjohnson3

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