Lookup and Find

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
719
Office Version
  1. 2010
Platform
  1. Windows
@Aladin Akyurek

We discussed Lookup and Find a while back. Formula returned required values but I just noticed today formula is returning incorrect values when I delete data from row 23.

Row 23 previously had:

23A Johnson,
23B John
23C 18,000.00

Could you advise please?


Excel 2010
ABCD
19First NameLast NameAmt
20JohnJohnson15,000.00
21SmithSmithson850.00
22JamesJemson17,520.00
23
24kenJemson16,500.00
25
26Extract
27John Johnson-should be 15000
28Smith Smithson-should be 850
29James Jemson-should be 17520
30ken Jemson16,500.00should be 16500
31Ken Jemson-should be not found
32Johnson, John-should be not found
Sheet1
Cell Formulas
RangeFormula
C27=IFERROR(LOOKUP(9.99999999999999E+307,FIND($A$20:$A$24&" "&$B$20:$B$24,$A27&" "),$C$20:$C$24),"Not found")
C28=IFERROR(LOOKUP(9.99999999999999E+307,FIND($A$20:$A$24&" "&$B$20:$B$24,$A28&" "),$C$20:$C$24),"Not found")
C29=IFERROR(LOOKUP(9.99999999999999E+307,FIND($A$20:$A$24&" "&$B$20:$B$24,$A29&" "),$C$20:$C$24),"Not found")
C30=IFERROR(LOOKUP(9.99999999999999E+307,FIND($A$20:$A$24&" "&$B$20:$B$24,$A30&" "),$C$20:$C$24),"Not found")
C31=IFERROR(LOOKUP(9.99999999999999E+307,FIND($A$20:$A$24&" "&$B$20:$B$24,$A31&" "),$C$20:$C$24),"Not found")
C32=IFERROR(LOOKUP(9.99999999999999E+307,FIND($A$20:$A$24&" "&$B$20:$B$24,$A32&" "),$C$20:$C$24),"Not found")
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
The issue occurs because search set has a record with empty components...

In C27 control+shift+enter, not just enter, and copy down:

=IFERROR(LOOKUP(9.99999999999999E+307,FIND(IF($A$20:$A$24&" "&$B$20:$B$24=" ","##",$A$20:$A$24&" "&$B$20:$B$24),$A27&" "),$C$20:$C$24),"Not found")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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