Help with LOOKUP and SEARCH

Sean15

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

Excel 2010
ABC
18First NameLast NameAmt
19JohnJohnson15,000.00
20SmithSmithson850.00
21JamesJemson17,520.00
22kenJemson16,500.00
23
24John A Johnson15,000.00
25Smith Smithson850.00
26Johnson, John15,000.00
Sheet1
Cell Formulas
RangeFormula
B24=LOOKUP(9.99999999999999E+307,SEARCH($A$19:$A$22,A24)*SEARCH($B$19:$B$22,A24),$C$19:$C$22)
B25=LOOKUP(9.99999999999999E+307,SEARCH($A$19:$A$22,A25)*SEARCH($B$19:$B$22,A25),$C$19:$C$22)
B26=LOOKUP(9.99999999999999E+307,SEARCH($A$19:$A$22,A26)*SEARCH($B$19:$B$22,A26),$C$19:$C$22)



LOOKUP and SEARCH formula is adapted from one of Aladin Akyurek's post.

Why is formula in B24 and B26 returning $15,000.00 when search criteria does not match?

Could someone post formula for exact match please.
 
Last edited:

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Since John A Johnson is not in search range, I thought formula would return #N/A or are my thoughts wrong?
 
Upvote 0

Excel 2010
ABC
18First NameLast NameAmt
19JohnJohnson15,000.00
20SmithSmithson850.00
21JamesJemson17,520.00
22Johnson,John18,000.00
23kenJemson16,500.00
24
25Extract
26JohnJohnson15,000.00
27JohnsonJohn-
28Johnson,John18,000.00
29kenJemson16,500.00
30KenJemson-
Sheet1
Cell Formulas
RangeFormula
C26=SUMPRODUCT((EXACT($A$19:$A$23,A26)*(EXACT($B$19:$B$23,B26)*($C$19:$C$23))))
C27=SUMPRODUCT((EXACT($A$19:$A$23,A27)*(EXACT($B$19:$B$23,B27)*($C$19:$C$23))))
C28=SUMPRODUCT((EXACT($A$19:$A$23,A28)*(EXACT($B$19:$B$23,B28)*($C$19:$C$23))))
C29=SUMPRODUCT((EXACT($A$19:$A$23,A29)*(EXACT($B$19:$B$23,B29)*($C$19:$C$23))))
C30=SUMPRODUCT((EXACT($A$19:$A$23,A30)*(EXACT($B$19:$B$23,B30)*($C$19:$C$23))))


Hi:

I ended up with this. A bit crude but it returns exact matches.

Adapted formula from here:

https://www.ablebits.com/office-addins-blog/2014/08/19/vlookup-case-sensitive-excel/
 
Last edited:
Upvote 0
In C26 enter and copy down:
Code:
=IFERROR(LOOKUP(9.99999999999999E+307,FIND($A$19:$A$23&" "&$B$19:$B$23,$A26&" "&$B26),$C$19:$C$23),"-")
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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