Sorry if I was unclear. Here is an example.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
Column 1 Column 2 Column 3
Qty Item Formula
3 Pen Pen
3 Watch Pen
3 Plate Pen
Watch
Watch
Watch
Plate
Plate
Plate
My objective is to mutiply items by the quantity and this would be created in the column containing the formula. Is this possible?
I can't get the columns to display properly here but the last 3 watches and the last 3 plates should be under the 3 pens on the right sid in column 3
Try this...
Book1 |
---|
|
---|
| A | B | C |
---|
2 | 3 | Pen | Pen |
---|
3 | 3 | Watch | Pen |
---|
4 | 3 | Plate | Pen |
---|
5 | _ | _ | Watch |
---|
6 | _ | _ | Watch |
---|
7 | _ | _ | Watch |
---|
8 | _ | _ | Plate |
---|
9 | _ | _ | Plate |
---|
10 | _ | _ | Plate |
---|
11 | _ | _ | |
---|
|
---|
Create this named formula:
- Name: Array
- Refers to: =ROW(INDIRECT("1:3"))
Then, this array formula** entered in C2:
=IF(ROWS(C$2:C2)>SUM(A$2:A$4),"",INDEX(B$2:B$4,MIN(IF(SUBTOTAL(9,OFFSET(A$2,,,Array))>=ROWS(C$2:C2),Array))))
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
Copy down until you get blanks.
The named formula, Array, refers to the number of items in the list. In your list there are 3 items: Pen, Watch, Plate. So:
=ROW(INDIRECT("1:3"))