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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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