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!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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