Lookup and Find

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,215,040
Messages
6,122,806
Members
449,095
Latest member
m_smith_solihull

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