You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Autofill alternative for non sequential numbers

Hi,


I have 2 tables,

Table 1 has text data in column A.

I want to use this data in Table 2, but i want to populate 2 rows in Table 2 using the data from 1 row of Table 1 (B1 and B2 in Table 2 populated using data from A1 in Table 1)

This is obviously simple enough, but i want to autofill the rest of Table 2 using this pattern. ie A1 into B1&B2, A2 into B3&B4, A3 into B5&B6 etc

If I try Autofilling, the sequence starts again - B7&B8 would take data from A7, B9&10 would take data from A8 etc.

I think i need to use some sort of formula or trick to get around this, but not sure what!


Does anyone have any ideas for me to try?

Thanks.

Posted on Oct 13, 2024 3:01 AM

Reply
5 replies

Oct 13, 2024 5:20 AM in response to Oakfield1980

You can try a formula like this:


If your tables don't have a Header Row (as in your description):



In A1 of Table 2, filled down:


= INDEX(Table 1::A,QUOTIENT(ROW()−1,2)+1)


If your tables have a Header Row (as is common in Numbers):



In A2 of Table 2-1, filled down:


=INDEX('Table 1-1'::A,QUOTIENT(ROW(),2)+1)


More on INDEX here:


INDEX – Apple Support (MY)


More on QUOTIENT here:


QUOTIENT – Apple Support (MY)


Once you've got the values the way you want them in the second table you can "remove" the formulas by selecting the column, command-c to copy, Edit > Paste Formula Results.


SG



Oct 16, 2024 12:41 AM in response to Oakfield1980

So, i've had a look at what you did and have it straight in my mind. Basically dividing the row number by 2, rounding it down (as Quotient doesn't show decimals) and adding 1. Very clever and tidy way of doing it, thank you.


my next question is on the same tables...

In table 1 I have data in columns B and C, Row 2 (results of formulas in those boxes)

I want to use that data in Column B, Rows 2&3 respectively in table 2, with that pattern carried on ie B and C, Row 3 into B, 4&5 etc

Again, this is easy to do manually, but i would like to be able to autofill this.


Thanks again,

Mark.

Autofill alternative for non sequential numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.