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.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]REQUESTOR[/TD]
[TD]Practice Area[/TD]
[TD]Matter #[/TD]
[TD]Matter Name[/TD]
[TD]Type of Filing[/TD]
[TD]New or Existing[/TD]
[TD]DOC[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]4/2[/TD]
[TD]LB[/TD]
[TD]COM[/TD]
[TD]LA2016000123[/TD]
[TD]You v. Me[/TD]
[TD]Correspondence[/TD]
[TD]Existing[/TD]
[TD]4/2[/TD]
[TD]CP[/TD]
[/TR]
[TR]
[TD]4/3[/TD]
[TD]DZ[/TD]
[TD]REG[/TD]
[TD]LA2016000456[/TD]
[TD]TL567[/TD]
[TD]Pleadings[/TD]
[TD]New[/TD]
[TD]4/3[/TD]
[TD]HQ[/TD]
[/TR]
</tbody>[/TABLE]

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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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
DateREQUESTORPractice AreaMatter #Matter NameType of FilingNew or ExistingDOCLocation
LBCOMLA2016000123You v. MeCorrespondenceExistingCP
DZREGLA2016000456TL567PleadingsNewHQ

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]4-feb[/TD]

[TD="align: right"]4-feb[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]4-mrt[/TD]

[TD="align: right"]4-mrt[/TD]

</tbody>
Blad1



AB
LB

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="bgcolor: #92D050"]CP[/TD]

</tbody>
Blad9

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]B2[/TH]
[TD="align: left"]=VLOOKUP(A2,Blad1!$B$2:$I$3,8,0)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
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,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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