Array Formula

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,645
Office Version
  1. 365
Platform
  1. Windows
I have a list of data that contains an area description within the cells text string
E.g. the text string is as follows 'Project Name - Area Rate - Name'

From the above text string I am using an array formula to return a rate based on the part of the text that is 'Area Rate'

=IF(E282="","",INDEX(D_PayRatesAreas,SUMPRODUCT(ISNUMBER(SEARCH(D_PayRatesAreas,E282))*(ROW(D_PayRatesAreas)-3))))

E282 is the cell containing the text string 'Project Name - Area Rate - Name'
D_PayRatesAreas is a list of areas with the associated pay rates

This has been working until one of the pay rates needs to be in the list twice as a specific manager needs to be associated with this pay rate and there are two managers associated with this one pay rate.

Is it possible to adapt this formula to deal with the 'Area Name' pay rate being in the lookup list twice?

TIA
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
=IF(E282="","",LOOKUP(1,1/SEARCH(PayRatesAreas,E282),PayRates))

PayRatesAreas is the areas column, Payrates is the pay rates column.
 
Last edited:
Upvote 0
Is this supposed to be entered as an array formula?

I have tried as an array and not and it is returning #NAME ?
 
Upvote 0

Forum statistics

Threads
1,224,910
Messages
6,181,678
Members
453,062
Latest member
blackyblack

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