In column A I have a total number of items (e.g., A1=46.8, A2=43.4, A3=26.2, etc.).
In column B I have the total cost of all the items (e.g., B1=$4,201,063, B2=$1,841,198, B3=$1,069,026, etc.)
In column C I have the average cost of each item (i.e., C=B/A) (e.g., C1=$89,817, C2=42,457, C3=$40,802, etc.)
How can I set up column D so that I have the results of C1 replicated down by the same number of times indicated in A1, followed by the results of C2 replicated down by the number of times indicated in A2, followed by the results of C3 replicated down by the number of times indicated in A3, etc., etc. etc.?
In column B I have the total cost of all the items (e.g., B1=$4,201,063, B2=$1,841,198, B3=$1,069,026, etc.)
In column C I have the average cost of each item (i.e., C=B/A) (e.g., C1=$89,817, C2=42,457, C3=$40,802, etc.)
How can I set up column D so that I have the results of C1 replicated down by the same number of times indicated in A1, followed by the results of C2 replicated down by the number of times indicated in A2, followed by the results of C3 replicated down by the number of times indicated in A3, etc., etc. etc.?