Runawaygeek
New Member
- Joined
- Nov 28, 2017
- Messages
- 6
Hi guys,
I had a formula, that would copy data from a cell to another sheet, based on a value in another cell within the Row. To do this, I had a count formula on the end, that added 1 each time the trigger value was met. But the first cell was its own formua as i needed the option of a 0
=IF(C2="AAA",1,0)
=IF(C3="AAA",D1+1,D1)
So my data would be something like this:
<tbody>
</tbody>
in count i would get 0, 1, 1, 2
If row 04, had another category, then i would get 0,1,1,1
All this is sheet 1
Then in sheet two, where i would want to return just Rows 2 and 3 all neatly packed up the top.
<tbody>
</tbody>
I have forgotten the formula that would allow me to pack it up, If I do a basic Index and Match, it only works if I have blank rows included.
Anyone got any ideas what i was on about, i know it worked, just forgot. I also am pretty sure it was an array formula, (ctrl shift enter)
I also realise that if i want the other Categories on new sheets, i would need to add other count columns, when i did this last time i have 6 of these.
Thanks for any help,
Ben
I had a formula, that would copy data from a cell to another sheet, based on a value in another cell within the Row. To do this, I had a count formula on the end, that added 1 each time the trigger value was met. But the first cell was its own formua as i needed the option of a 0
=IF(C2="AAA",1,0)
=IF(C3="AAA",D1+1,D1)
So my data would be something like this:
ID | Title | Category | Count |
01 | Book one | DDD | =IF(C2="AAA",1,0) |
02 | Book two | AAA | =IF(C3="AAA",D1+1,D1) |
03 | Book Six | FFF | =IF(C3="AAA",D2+1,D2) |
04 | Book three | AAA | =IF(C3="AAA",D3+1,D3) |
<tbody>
</tbody>
in count i would get 0, 1, 1, 2
If row 04, had another category, then i would get 0,1,1,1
All this is sheet 1
Then in sheet two, where i would want to return just Rows 2 and 3 all neatly packed up the top.
Title | Count |
Book two | 1 |
Book three | 2 |
<tbody>
</tbody>
I have forgotten the formula that would allow me to pack it up, If I do a basic Index and Match, it only works if I have blank rows included.
Anyone got any ideas what i was on about, i know it worked, just forgot. I also am pretty sure it was an array formula, (ctrl shift enter)
I also realise that if i want the other Categories on new sheets, i would need to add other count columns, when i did this last time i have 6 of these.
Thanks for any help,
Ben