Xiq
Active Member
Hi everyone!
Just a question to learn more about the possibilities with arrays. I would like to know if there is another way to my current solution in my array formula.
Below are two arrays I want to multiply. As you can see I need the uneven positions multiplied by 1, and the even positions by 3.
Currently the right side array is hard coded for 12 numbers. Is it possible to get this dynamic in an easy way?
I know I can do it the long and ugly way... something in the lines of:
(Just out the top of my head, please don't mind the mistakes )
Do I make sense?
Just a question to learn more about the possibilities with arrays. I would like to know if there is another way to my current solution in my array formula.
Below are two arrays I want to multiply. As you can see I need the uneven positions multiplied by 1, and the even positions by 3.
Code:
{"9";"7";"8";"3";"4";"5";"6";"7";"8";"9";"2";"1"}*{1;3;1;3;1;3;1;3;1;3;1;3}
Currently the right side array is hard coded for 12 numbers. Is it possible to get this dynamic in an easy way?
I know I can do it the long and ugly way... something in the lines of:
Code:
=IF(ISEVEN(ROW(A1:LEN(ISBN#)),3,1)
Do I make sense?