Hi everyone. New member and 1st time posting.
I trawled the overall forum and specifically the Excel Worksheet Functions looking for a solution. Please let me know if I'm posting in the wrong area or if I missed the solution already. I am moderately proficient with Excel, but still learning the creative ropes on nesting formulas; I don't know VBA or SQL yet.
I tried to word my question a few times and it didn't seem to come out right, so allow me to provide examples.
I am trying to get a formula that changes the length of the column cell range, where the length of the column is based on the value in another cell. In the example below, the cell range is nested into a larger formula that depends on a changing array size. I put in bold red the part of the formula I need 'dynamic'.
1____A____B____C
2____3____X____= nested in formula (B3:B4) (length of array is 3, based on A1)
3_________X____copied down
4_________X____copied down
5____4____Y____= nested in formula (B5:B8) (length of array changes to 4, based on A5)
6_________Y____copied down
7_________Y____copied down
8_________Y____copied down
If you'd like a more specific example, here is a clipped attachment from my project but goes beyond my initial question here. In the sample, Col E flags FALSE/0 if the number values in a specified range are all the same; conversely it flags TRUE/1 if one or more in the specified range are different. The range of specified cells for Col E come from Col C. So when I copy the formula down Col E, it updates (shortens/lengths) the specified range when the value in Col C changes. I've colored the cells of concern just to help the sample visuals--I don't need any conditional formatting.
I'm not too concerned about the blank cells in Col E as they should be blank as a part of the nested formula when I finish; I have a -1 in the sample explanation, to help account for the blank cells and occasional overlaps in Col E.
excel_forum_sample_14jul12.xls
My project has almost 160,000 rows and the array will need to resize quite a bit, from ranging from 3 to 25 cells long all single column.
I found this post in the Excel Programming section. His question is very similar to mine, but his doesn't have blank cells and are sorted by size. Also, VBA & SQL skills are non-existent, so I wan't able to interpret the solution.
Many thanks in advance and I appreciate your efforts to help.
Bookmarks