Array Formula Cell References

crookesa

Board Regular
Joined
Apr 11, 2013
Messages
88
I have a formula that works but want to make it more dynamic rather than being hard coded.

Code:
=IF(ISERROR(INDEX(employee_names,SMALL(IF(employee_1=$I$21,ROW(employee_1)),ROW(1:1))-1,1))," ",INDEX(employee_names,SMALL(IF(employee_1=$I$21,ROW(employee_1)),ROW(1:1))-1,1))
the employee_1, employee_2, etc. range refers to the 1st day of the month to look up the employees shift.

I have cell G1 on each worksheet I have created for the days of the month so day 1,2... which has the respective day in it.

What I am trying to do is if that cell G1 is changed then date is changed and the respective formulas will work based on that cell value.

I have tried using
Code:
[I]=CONCAT("employee_",DAY(G1))[/I]
where G1 is the date field to dynamically change the formula but it comes up with an empty array.
I know the employee_1 are named ranges and wonder if that is at all possible. I have also tried to have the CONCAT formula is a helper cell and reference that rather than insert into the formula but still no luck.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Use INDIRECT eg

INDIRECT("employee_"&DAY(G1))

which will return the actual value of the named range.
 
Upvote 0

Forum statistics

Threads
1,215,507
Messages
6,125,201
Members
449,214
Latest member
mr_ordinaryboy

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