Index match question

snpetter01

New Member
Joined
Apr 4, 2019
Messages
1
Hello!

I am trying to make a sheet that pulls accrual values. I want to pull text based off of a cell that contains a company name. However, there are multiple lines with different accruals for the same company. I want to pull a specific result (not multiple result).

i.e.-

I have a carpet cleaning accrual and a tile clean accrual from the same company, ABC, that goes into the same accrual category, "Carpet Accrual". I am using an index match to look up the company based on the accrual type and the description based on the company. Carpet clean appear first so it always show carpet clean. I need it to pull tile clean instead.

I know this is so confusing:rofl: PLEASE HELP!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
A simple way is to add another column that concatenates the company name and each accrual, then you can index match the proper accrual.

For example

[TABLE="class: grid, width: 284"]
<tbody>[TR]
[TD]Company[/TD]
[TD]Acount[/TD]
[TD]UniqueID[/TD]
[TD]Accural[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Carpet[/TD]
[TD]ABCCarpet[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Tile[/TD]
[TD]ABCTile[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]

Then you can index match the UniqueID instead of the company and won't pull the wrong accrual.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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