List of values based on matching criteria in another column

TheMacroNoob

Board Regular
Joined
Aug 5, 2022
Messages
52
Office Version
  1. 365
Platform
  1. Windows
Hello excel experts,

I want to grab a list of unit numbers based on criteria in another column.

If a row in column G contains "Tax Credit", return the corresponding row value in column B.
There is a formula that accomplishes this task: =INDEX(Sheet1!$B$8:$B$86,SMALL(IF("Tax Credit"=Sheet1!$G$8:$G$86,ROW(Sheet1!$G$8:$G$86)-ROW(Sheet1!$G$8)+1),ROW(1:1)))

Is this really the only solution? Can you use something like an XLOOKUP or VLOOKUP with some way to give the next matching value?

Copy of Lonnie Adkins 980 Landlord MNOI Application.xlsx
ABCDEFG
6UnitProgram
7Current/Notice Residents
832-176Sec 8
950-179Sec 8
1043-139Sec 8
1127-389Sec 8
1213-395Sec 8
1331-364Sec 8
1410-332Sec 8
1524-348Sec 8
1613-420Sec 8
1726-348Sec 8
1830-129Sec 8
1946-223Sec 8
2034-445Sec 8
2137-314Sec 8
2228-421Sec 8
2318-361Sec 8
2422-341Tax Credit
2517-432Sec 8
2646-156Sec 8
2715-155Tax Credit
2816-287Sec 8
2911-138Sec 8
3021-415Tax Credit
3143-194Sec 8
3238-256Sec 8
3311-430Sec 8
3442-382Sec 8
3521-372Sec 8
3645-170Sec 8
3747-334
3816-346Sec 8
3917-166Tax Credit
4041-467Sec 8
4130-216Tax Credit
4222-117Sec 8
4311-242Tax Credit
4430-483Sec 8
4529-490Sec 8
4645-397None
4740-300Tax Credit
4814-334Tax Credit
4938-349Tax Credit
5045-407Tax Credit
5150-113Tax Credit
5242-389Tax Credit
5333-413Sec 8
5440-378Tax Credit
5525-109Tax Credit
5628-116Sec 8
5748-281Sec 8
5828-352Sec 8
5914-352Tax Credit
6022-252Tax Credit
6126-432Sec 8
6227-294Tax Credit
6312-167Tax Credit
6427-297Sec 8
6518-451Tax Credit
6620-397Sec 8
6717-333Sec 8
6847-384Tax Credit
6929-350Sec 8
7026-194Sec 8
7118-178Sec 8
7217-387Tax Credit
7333-123Sec 8
7424-183Sec 8
7544-471Tax Credit
7636-192Tax Credit
7743-318Sec 8
7845-251Sec 8
7919-365Sec 8
8048-492Sec 8
8144-327Tax Credit
8250-150Tax Credit
8341-440Tax Credit
8442-360Tax Credit
8543-290Sec 8
8650-486Tax Credit
Sheet1
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If I understand correctly about what you're after, try this: =FILTER(B8:B86,G8:G86="Tax Credit")
 
Upvote 0
Solution
You're welcome. Glad it works.

You might benefit from watching some videos on youtube. The channel is awesome. Learn lots about filter, here.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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