What do i need to do to have exact match

BlackSwan

New Member
Joined
Oct 27, 2002
Messages
35
I need to match $A6 with column D on Distress sheet and give out the value of O. But I want to have an EXACT match. If lookup cant find file number $A6 I want to get result of 0. Can someone help me?


=LOOKUP($A6,Distress!$D:$D,Distress!O:O)
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try --

=INDEX(Distress!O:O,MATCH($A$6,Distress!$D:$D,0),0)

or --

=VLOOKUP($A$6,Distress!$D:$O,12,0)

To get a "0" return when <> match, --

=IF(ISNUMBER(MATCH($A$6,Distress!$D:$D,0)),VLOOKUP($A$6,Distress!$D:$O,12,0),0)

If you are going to be doing a bunch of these, or if you want to turbo-charge your Excel, use SETV/GETV from the free morefunc add-in, source available here on the board.
 
Upvote 0
To get the results (in blue) using the lookup values (in pink) and the table array (in yellow) compute the intermediate results (in green)...
Book1
ABCDEFGHIJKL
1
2catcat11cat1
3horsedog20dog2
4bird#N/A#N/A0mouse3
5
6
7
Sheet3
 
Upvote 0
You don't need GETV/SETV if you use a worksheet cells to store intermediate results. The columns containing intermediate results can also be hidden.
 
Upvote 0
mark, what if on colum F and G has multiple cats

cat 1
cat 2
cat 3
cat 4

will cell D2 give me maximum value (4) ?

and what button do i have to press again to get {= } .. im an excel noob :(
 
Upvote 0
Excel's lookup functions (MATCH, VLOOKUP, LOOKUP, etc.) will return the 1st matching entry (if present). Why don't you extract the entries with max values to create a separate table array for use with these functions?
 
Upvote 0
BlackSwan said:
mark, what if on colum F and G has multiple cats

cat 1
cat 2
cat 3
cat 4

will cell D2 give me maximum value (4) ?

and what button do i have to press again to get {= } .. im an excel noob :(

See the below --
Book1
ABCD
1cat1cat
2cat5
3cat9
4cat49
Sheet1



In C4: =MAX(IF(A1:A4=C1,B1:B4),0)
 
Upvote 0
And, getting back to the context of performing lookups what if you don't know how many "cat" entries there are (or their cell addresses) in the list beforehand?
 
Upvote 0

Forum statistics

Threads
1,216,029
Messages
6,128,404
Members
449,448
Latest member
Andrew Slatter

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