Dynamically changing array elements in a formula

Bumba

New Member
Joined
Jan 29, 2019
Messages
10
How can I create an array in a formula which while filling down the items of the array change in a specific manner.


What I want is in cell B15, while in a function like say dget where there is an array field part in the formula, the contents of the array will be A14 and A15 i.e. {"Customer ID";"12D101"}, then when I fill down the formula the contents of the array in cell B16 will be A14 and A16 i.e. {"Customer ID";"12D102"}, then in cell B17 will be A14 and A17 i.e. {"Customer ID";"12D103"} and so on..


How can I do this?


NOTE: I know the results in the sample file can be achieved by vlookup or index+match combo or any other method and that is not the issue, all I want to know is how do I change the array elements while I'm filling down the cells in cells B16 to B18.

I've tried to use the below code
Code:
=CONCATENATE("{",CHAR(34),INDIRECT("$a$14"),CHAR(34),";",CHAR(34),A15,CHAR(34),"}")
instead of A14:A15 in my formula but it gives #VALUE ! error.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Welcome to the forum.

You can't do that as it just won't work with a D-function, which requires a contiguous range (not an array) for the criteria.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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