Excel formula

SDTMN

New Member
Joined
Dec 7, 2016
Messages
4
Hi all,

I couldnt find any help on my small issue, so please help if you can.

I have an excel which on "A" sheet has data on horizontal so A1=Me,B1=You,C1=They and then on the "B" sheet i retrieve these values and concatenate with some text but on vertical, so A1=Me,A2,You,A3=They. So far so good but then when i have values in the "A" sheet on A2,B2,C2 and so on , on the second sheet I want to just copy past the formulas from above but still to keep the pase by incrementing all 3 values with 1 not every value with 1. Does it make sense?


Thanks.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi, welcome to the forum!

Something like this maybe?


Excel 2013
A
1Me some text
2You some text
3They some text
4Other 1 some text
5Other 2 some text
6Other 3 some text
7More 1 some text
8More 2 some text
9More 3 some text
Sheet B
Cell Formulas
RangeFormula
A1=INDEX('Sheet A'!$A$1:$C$1000,ROUNDUP(ROWS(A$1:A1)/3,0),MOD(ROWS(A$1:A1)-1,3)+1)&" some text"




Excel 2013
ABC
1MeYouThey
2Other 1Other 2Other 3
3More 1More 2More 3
Sheet A
 
Upvote 0
Hi FormR, thanks for looking into this and apologies for my late reply, ive been in a mini holiday :)

Thats not what I want, let me try to explain, below are the columns, A,B,C,D and on X I need a foruma to keep the pase like on the X2 to show me the value of B2, then on X3 to put the value of C2 and on X3 the value of D2. Then when i drag down to know to go to the next line which is line 3 and put the next 3 values.

ABCDX
CodeDescriptionName
1Supplier1NikeNike shoesNike IncNike
2Supplier2AddidasAddidas shoesAddidas Co.Nike shoes
3Supplier3PepsiPepsi drinkPepsi LtdNike Inc
Addidas
Addidas shoes
Addidas Co.

<colgroup><col span="3"><col><col><col span="5"><col></colgroup><tbody>
</tbody>


Hope the above makes sense...
 
Upvote 0
Hi, like this? - formula in X2 can be copied down as required.


Excel 2013
ABCDEX
1CodeDescriptionName
2Supplier1NikeNike shoesNike IncNike
3Supplier2AddidasAddidas shoesAddidas Co.Nike shoes
4Supplier3PepsiPepsi drinkPepsi LtdNike Inc
5Addidas
6Addidas shoes
7Addidas Co.
8Pepsi
9Pepsi drink
10Pepsi Ltd
Sheet1
Cell Formulas
RangeFormula
X2=INDEX($B$2:$D$1000,ROUNDUP(ROWS(X$2:X2)/3,0),MOD(ROWS(X$2:X2)-1,3)+1)
 
Upvote 0
Can you help me understand it?

Hi, glad it helped.

It might help your understanding if we split the formula up a little like below:


Excel 2013
ABCDEFGHI
1CodeDescriptionNameRow Formula is inRow to indexCol to indexGet row & col from range
2Supplier1NikeNike shoesNike Inc111Nike
3Supplier2AddidasAddidas shoesAddidas Co.212Nike shoes
4Supplier3PepsiPepsi drinkPepsi Ltd313Nike Inc
5421Addidas
6522Addidas shoes
7623Addidas Co.
8731Pepsi
9832Pepsi drink
10933Pepsi Ltd
Sheet1
Cell Formulas
RangeFormula
F2=ROWS(F$2:F2)
G2=ROUNDUP(F2/3,0)
H2=MOD(F2-1,3)+1
I2=INDEX($B$2:$D$1000,G2,H2)


To gain a better understanding of the individual functions used the built in help is always a good place to start.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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