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:ROFLMAO: PLEASE HELP!
 

Some videos you may like

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

john316swan

Board Regular
Joined
Oct 13, 2016
Messages
57
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

CompanyAcountUniqueIDAccural
ABCCarpetABCCarpet5
ABCTileABCTile10

<tbody>
</tbody>

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

Watch MrExcel Video

Forum statistics

Threads
1,123,133
Messages
5,599,912
Members
414,346
Latest member
mmoose

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
Top