Match without Index?

Nickel17

New Member
Joined
Apr 19, 2017
Messages
12
Good morning.

I have a spreadsheet which looks like the table below. I have data on a separate worksheet which will add the practice area when I enter in the person's initials. I'd like to populate the Location column using the initials in column B on the active worksheet and for some reason, I am unable to write a formula to get this to work.

DateREQUESTORPractice AreaMatter #Matter NameType of FilingNew or ExistingDOCLocation
4/2LBCOMLA2016000123You v. MeCorrespondenceExisting4/2CP
4/3DZREGLA2016000456TL567PleadingsNew4/3HQ

<tbody>
</tbody>

Here is what I've come up with so far.
This returns "HQ"

Code:
=IF(MATCH(B2,LawDb1!$B$16:$B$35,0),LawDb1!$I$3,"")

This returns "CP"

Code:
 =IF(MATCH(B2,LawDb1!$B$2:$B$15,0),LawDb1!$I$2,"")

Both return "#N/A" when the statement is false. I'd like to have the cell be blank if there is no data in the requestor column, so IF(ISBLANK( will be used as well.
My question is, how can I combine the two statements to get what I need? Full disclosure I am not well versed with Index:Match, I got it to work once and it took me hours to get it to work correctly.
I appreciate any and all help that you may be able to provide.

Thank you,
Nick
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
With Vlookup.


Book1
ABCDEFGHI
1DateREQUESTORPractice AreaMatter #Matter NameType of FilingNew or ExistingDOCLocation
24-febLBCOMLA2016000123You v. MeCorrespondenceExisting4-febCP
34-mrtDZREGLA2016000456TL567PleadingsNew4-mrtHQ
Blad1



Book1
AB
1
2LBCP
Blad9
Cell Formulas
RangeFormula
B2=VLOOKUP(A2,Blad1!$B$2:$I$3,8,0)
 
Upvote 0
Your if statement does not make an evaluation as there is no = or <> signs, so match does not return True or False but a number. Try wrapping an ISERROR around the Match Statement though so you do evaluate a TRUE/FALSE
 
Upvote 0
MATCH doesn't return a True or False value.
It returns a NUMBER, an index # to be exact, relative to the position the lookup value is found in the range.
It returns #N/A if the match isn't found.

You have to test either for Not an Error, or Is a Number.

Try
=IF(ISNUMBER(MATCH(B2,LawDb1!$B$16:$B$35,0)),LawDb1!$I$3,"")
 
Upvote 0
Thank you for your reply. I'm not familiar with using ISERROR so when I tried
Code:
IF(ISERROR[COLOR=#333333](MATCH(B2,LawDb1!$B$16:$B$35,0),LawDb1!$I$3,"")[/COLOR]
I get an error telling me that I have "too few arguments". Can you point out where I went wrong, please?
 
Upvote 0
With Vlookup.

ABCDEFGHI
1DateREQUESTORPractice AreaMatter #Matter NameType of FilingNew or ExistingDOCLocation
24-febLBCOMLA2016000123You v. MeCorrespondenceExisting4-febCP
34-mrtDZREGLA2016000456TL567PleadingsNew4-mrtHQ

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Blad1



AB
1
2LBCP

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Blad9

Worksheet Formulas
CellFormula
B2=VLOOKUP(A2,Blad1!$B$2:$I$3,8,0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
Thank you for your reply. It did not work, so I must have messed something up.
 
Upvote 0
MATCH doesn't return a True or False value.
It returns a NUMBER, an index # to be exact, relative to the position the lookup value is found in the range.
It returns #N/A if the match isn't found.

You have to test either for Not an Error, or Is a Number.

Try
=IF(ISNUMBER(MATCH(B2,LawDb1!$B$16:$B$35,0)),LawDb1!$I$3,"")

Hi. Thank you for your reply. This worked! But only for "HQ". Is there a way to
Code:
=IF(ISNUMBER(MATCH(B2,LawDb1!$B$16:$B$35,0)),LawDb1!$I$3,"")
with
Code:
=IF(ISNUMBER(MATCH(B2,LawDb1!$B$2:$B$15,0)),LawDb1!$I$2,"")
with an ISBLANK statement?

Code:
=IF(ISNUMBER(MATCH(B2,LawDb1!$B$19:$B$38,0)),LawDb1!$I$3,IF(ISNUMBER(MATCH(B2,LawDb1!$B$2:$B$18,0)),LawDb1!$I$2))
This is what I came up with and it works! Thank you!
 
Last edited:
Upvote 0
I don't understand what you're asking now about isblank
I'm sorry, should have been more clear. I usually have my formulas in a few hundred cells in a column as I never know how long the active worksheet is from month to month. I like to have a blank cell if there is no data in any of the other cells because my Boss doesn't like looking at N/A or other miscellaneous values in this sheet.

For example, I have this in the Matter Name Column.
Code:
=IF(ISBLANK(D25),"",VLOOKUP(D25,LawDb1[[Matter'#]:[Matter Name]],2,FALSE))
 
Upvote 0

Forum statistics

Threads
1,216,110
Messages
6,128,896
Members
449,477
Latest member
panjongshing

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