Formula Help. (One condition transfer all)

Aberdham

Board Regular
Joined
Mar 8, 2018
Messages
163
Office Version
  1. 365
Platform
  1. Windows
Hey all,

I know it is possible to use index and aggregate to extract data row by row. But I would like to have all the data in 1 row. but got stuck there, Perhaps transpose?
Sales RepProduct Code
SueDN099
SueDN100
SueDN101
SueDN102
SueDN103
SueDN104
SueDN105
SueDN106
SueDN107
SueDN108
SueDN109
SueDN110
TimDDU09
TimDDU10
TimDDU11
ThomasDN098
AdriaUI987
AdriaUI988

<!--StartFragment--> <colgroup><col width="87" span="2" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

Here is how I would like to have
Sales RepProduct Code
SueDN099;DN100;DN101;DN102;DN103;DN104;DN105;DN106;DN107;DN108;DN109;DN110
Tim DDU09;DDU10;DDU11

<colgroup><col><col></colgroup><tbody>
</tbody>


Thanks in adv.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Do you have Office 365? If so, an array formula with the TEXTJOIN function can be used.
 
Last edited:
Upvote 0
Hi Worf,

Thanks for your reply. Currently I am using excel 2010
 
Upvote 0
I used intermediate formulas to get your result

Enter the following formula into C2

=COUNTIFS($A$2:A2,A2)

<tbody>
</tbody>

Enter the following array formula into D2 using Shift + Control + Enter

=IF(C2=1,INDEX($B$2:$B$19,MATCH(A2,$A$2:$A$19,0)),INDEX($D1:D$1,MATCH(1,((C2-1)=$C$1:C1)*(A2=$A$1:A1),0))&";"&B2)

Copy them down

Enter the following formula against Sue

=INDEX($D$2:$D$19,SUMPRODUCT((MAX(ROW($D$2:$D$19)*(A22=$A$2:$A$19))-1)))

Copy them down.

I have the solution workbook and am not allowed to post it here.

Kind regards

Saba

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
I have the solution workbook and am not allowed to post it here.

To share a file, upload it to a hosting site and paste the link here.
 
Last edited:
Upvote 0
Is this

DN099;DN100;DN101;DN102;DN103;DN104;DN105;DN106;DN107;DN108;DN109;DN110

in one cell or multiple cells?
 
Upvote 0
Hi Saba,

Thank you so much for your post. I am getting some error by testing the formula. I will try it out later today on my original spreadsheet and will post back.:)
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,351
Members
449,155
Latest member
ravioli44

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