Changing the array in a cell dependent on a check box

brooksc29

Active Member
Joined
Jul 25, 2010
Messages
333
In this problem, I need to alternate the array in a cell where if one is check box is checked it changes the formula for the array in the cell?

I'd like to say in cell DN6

if the box AL is checked in cell CR2, then the array is
=INDEX(ALABS!$AI$2:$AI$181,MATCH(1,IF(ALABS!$R$2:$R$181=$DA6,1,"")),0)

if the box is checked in cell CR3, then the array is
=INDEX(ALABS!$BJ$2:$BJ$181,MATCH(1,IF(ALABS!$AS$2:$AS$181=$DA6,1,"")),0)

thanks for your help wizards!
 
This one you posted before should work. One checkbox linked to CR2 and then an IF function should do the job

i thought about just changing it to IF CR2 is checked, the array is one thing, if it's not it's another.

I entered this formula for that:
=IF($CR$2,INDEX(ALABS!$AI$2:$AI$181,MATCH(1,IF(ALABS!$R$2:$R$181=$DA6,1,"")),INDEX(ALABS!$BJ$2:$BJ$181,MATCH(1,IF(ALABS!$AS$2:$AS$181=$DA6,1,"")))))

and again CR2 being checked works, but if it's not I simply get FALSE.

any help would be greatly appreciated!!
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,534
Messages
6,179,391
Members
452,909
Latest member
VickiS

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