Can I drag a set of 2 rows with formulas that reference the same row of another table

pcvaccaro

New Member
Joined
Apr 25, 2019
Messages
2
Hi smarties

I am trying to make a table that turns this:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]John
[/TD]
[TD]potato[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]cranberry[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]David[/TD]
[TD]salsa[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Stacy[/TD]
[TD]potato[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Greg[/TD]
[TD]potato[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Anna[/TD]
[TD]salsa[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]


Into this:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]John[/TD]
[TD][/TD]
[/TR]
[TR]
[TD] Potato[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD][/TD]
[/TR]
[TR]
[TD] Cranberry[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]David[/TD]
[TD][/TD]
[/TR]
[TR]
[TD] Salsa[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Stacy[/TD]
[TD][/TD]
[/TR]
[TR]
[TD] Potato[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Greg[/TD]
[TD][/TD]
[/TR]
[TR]
[TD] Potato[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Anna[/TD]
[TD][/TD]
[/TR]
[TR]
[TD] Salsa[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]


The first table is a long list of rows that will continually grow. The second table is on another sheet. I want to be able to write the formulas in rows 1 and 2 (John & potato) and drag the set down the rest of the sheet. So far everything I've tried produces a result that skips rows from the first table. Instead of going John, Mary, David, Stacy it goes John, David, Greg.

I tried a few things with INDIRECT and OFFSET but I still get a result that skips rows from table 1.

Any ideas?

Thanks!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I have one idea. I think this works on your exemplar.

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Book1
BCD
3NameFoodScore
4Johnpotato1
5Marycranberry5
6Davidsalsa4
7Stacypotato6
8Gregpotato2
9Annasalsa3
10
11
12
13Name and FoodScore
14John 
15potato1
16Mary
17cranberry5
18David
19salsa4
20Stacy
21potato6
22Greg
23potato2
24Anna
25salsa3
Sheet29
Cell Formulas
RangeFormula
B14=OFFSET($B$4,INT((ROW()-ROW($B$14)-2)/2)+1,MOD(ROWS($B$14:B14)-1,2))
C14=IFNA(INDEX($D$4:$D$9,MATCH(B13&B14,$B$4:$B$9&$C$4:$C$9,0)),"")
<strike>
</strike>
[/FONT]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top