Formula - Drag down to get values from the same row.

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
I have values in sheet 2. I need a formula for on sheet 1, so when I drag the formula down it get values from sheet 2 from the same row.
For example,
Sheet2 row1has

02350258026101790180

I want formula to do this.

0235
0258
0261
0179
0180

Please advise.

Thanks.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
How bout:

Excel Formula:
=TRANSPONER(Sheet2!A2:E2)
Translating, it would be ..
Excel Formula:
=TRANSPOSE(Sheet2!A2:E2)

Another option
(With Dante's option above or mine below, no need to copy down - the results will just "spill" down)

srizki.xlsm
ABCDE
102350258026101790180
Sheet2


srizki.xlsm
A
10235
20258
30261
40179
50180
Sheet1
Cell Formulas
RangeFormula
A1:A5A1=TOCOL(Sheet2!A1:E1)
Dynamic array formulas.
 
Last edited:
Upvote 0
Or if you did want a formula that you "drag down" rather than one that spills, you could try.

Book1
A
10235
20258
30261
40179
50180
Sheet1
Cell Formulas
RangeFormula
A1:A5A1=INDEX(Sheet2!$A$1:$E$1,ROWS(A$1:A1))
 
Upvote 0
Thank you all. Someone asked me this formula to drag down, I forgot why it was needed to drag down rather than transpose.
Transpose function is working well. I will suggest both formulas to the person who asked for it.
Thanks again for your help.
 
Upvote 0
Translating, it would be ..
Excel Formula:
=TRANSPOSE(Sheet2!A2:E2)

Another option
(With Dante's option above or mine below, no need to copy down - the results will just "spill" down)

srizki.xlsm
ABCDE
102350258026101790180
Sheet2


srizki.xlsm
A
10235
20258
30261
40179
50180
Sheet1
Cell Formulas
RangeFormula
A1:A5A1=TOCOL(Sheet2!A1:E1)
Dynamic array formulas.
Hi Peter,
Thanks for your reply. Transpose formula works, but I am using Excel 21 that does not have TOCOL function. I think TOCOL function was introduced in 365.
 
Upvote 0

Forum statistics

Threads
1,223,604
Messages
6,173,319
Members
452,510
Latest member
RCan29

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