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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Use INDIRECT eg

INDIRECT("employee_"&DAY(G1))

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

Forum statistics

Threads
1,223,967
Messages
6,175,673
Members
452,666
Latest member
AllexDee

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