Formula to link a value from a vertical list to a horizontal row

bearcub

Well-known Member
Joined
May 18, 2005
Messages
702
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
I have the following situation where I have employee ID's in a list that I want to link into a separate row.

The destination source (in this example) is in Row 2

The list starts in row 10.

I want to copy (by formula) each item in the list starting
Empolyee numbers to link.PNG
in row 10 to every other column in Row 2 (destinations are highlighted in yellow).

Is there a formula that will to move down the list by 1 row when I move across 2 columns? I don't think I can use Transpose for this, correct?

thank you for your help.

Michael
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi Michael,

Will this do it for you?

Bearcub.xlsx
RSTUVWXYZAAABAC
2AA8 BB3 CC5 ZZ5 XX3   
3
4
5
6
7
8
9List
10AA8
11BB3
12CC5
13ZZ5
14XX3
15
16
Sheet1
Cell Formulas
RangeFormula
R2:AC2R2=IF(INDEX($R$10:$R$9999,ROUNDUP(COLUMNS($R$2:R2)/2,0))="","",IF(ISEVEN(COLUMN()),INDEX($R$10:$R$9999,ROUNDUP(COLUMNS($R$2:R2)/2,0)),""))
 
Upvote 0
Without a complicated formula:
Enter R10 in cell R2 (Without the "=", just R10).
Select R2 and S2. Use the fill handle to fill right. You will see R3 in T2, R4 in U2, R5 in V2, etc.
Select R2:the end, and replace R with =R and you're done!
 
Upvote 0
A simpler formula option?

21 01 08.xlsm
RSTUVWXYZAA
1Employee IDSplit Amount (%)Employee IDSplit Amount (%)Employee IDSplit Amount (%)Employee IDSplit Amount (%)Employee IDSplit Amount (%)
2AA8100BB3100CC5100ZZ5100XX3
3
8
9List
10AA8
11BB3
12CC5
13ZZ5
14XX3
Sheet2 (2)
Cell Formulas
RangeFormula
R2,Z2,X2,V2,T2R2=INDEX($R10:$R14,COUNTIF($R1:R1,"E*"))
 
Upvote 0
Solution
Book1
RSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAO
1
2EXUU076SL 7EOAE5J4G QHTXMCEEP DAIW153F8 BJFHQK81L 8YL53U867 03XQOlKJ5 067L4KHTL EZBJR5ZKH 9Z7ROMTGG XL5GK8PF7 XZS54J5XW 0
3
4
5
6
7
8
9IDLink To
10EXUU076SL R2
117EOAE5J4G T2
12QHTXMCEEP V2
13DAIW153F8 X2
14BJFHQK81L Z2
158YL53U867 AB2
1603XQOlKJ5 AD2
17067L4KHTL AF2
18EZBJR5ZKH AH2
199Z7ROMTGG AJ2
20XL5GK8PF7 AL2
21XZS54J5XW AN2
Sheet3
Cell Formulas
RangeFormula
R2,AO2,AM2,AJ2:AK2,AH2,AF2,AD2,AB2,Z2,X2,V2,T2R2=INDIRECT(ADDRESS(CEILING(COLUMNS($R$1:R1)-1+(ROW($R$10)*2),2)/2,COLUMN($R$10)))

After copy Formula into First Cell you want, Select it with next blank right One then copy From bottom Right edge to right side
transpose.gif
 
Last edited:
Upvote 0
After copy Formula into First Cell you want, Select it with next blank right One then copy From bottom Right edge to right side
I note that you did not follow this procedure with the first image in your post but in relation to this suggestion, did you look at the sample data in post 1? The cell to the right is not blank.
Even if it was then selecting the two cells with the much simpler formula I posted and dragging across would produce the required results without adding the complexity of that formula or the unnecessary ongoing calculation burden of a volatile function like INDIRECT.
 
Upvote 0
Greeting Peter
this is only for fast copy to the target cells and to keep empty cell for need data and avoid duplicate Job (copy and then delete)

and Thank you for sharing your experience and knowledge to improve member performance.
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,580
Members
449,089
Latest member
Motoracer88

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