Row data to Columns

mfurqan

New Member
Joined
Jan 13, 2010
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hi All,
I have large spreadsheet of vendor agreements records in attached format. I need to transform it to the desired sheet as below.

In desired format the vendor ID should not be repeated in a row and its corresponding agreement details should come in columns from rows.

I prefer a non VBA solution.

Book4
BCDEFGHIJKLMNOPQRST
1Source FormatDesired Format
2VendorIDAgreement CategoryAgreement TitleAgreement StartAgreement ExpiryVendorIDCategory1Agreement StartAgreement ExpiryCategory2Agreement StartAgreement ExpiryCategory3Agreement StartAgreement ExpiryCategory4Agreement StartAgreement Expiry
3VendorID1Category1Title11/2/20191/1/2021VendorID1Title11/2/20191/1/2021Title21/20/20208/19/2021Title33/2/20203/2/2021Title43/2/20203/2/2021
4VendorID1Category2Title21/20/20208/19/2021VendorID2Title53/2/20203/2/2021Title61/20/20208/19/2021Title73/2/20203/2/2021
5VendorID1Category3Title33/2/20203/2/2021VendorID3Title83/2/20203/2/2021
6VendorID1Category4Title43/2/20203/2/2021VendorID4Title93/2/20203/2/2021
7VendorID2Category2Title53/2/20203/2/2021
8VendorID2Category3Title61/20/20208/19/2021
9VendorID2Category4Title73/2/20203/2/2021
10VendorID3Category1Title83/2/20203/2/2021
11VendorID4Category4Title93/2/20203/2/2021
Sheet1
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
In the signature section of your settings or profile, you should include the version of Excel you are using. What version are you using?
 
Upvote 0
See if this does what you want.

20 10 16.xlsm
BCDEFGHIJKLMNOPQRST
1Source FormatDesired Format
2VendorIDAgreement CategoryAgreement TitleAgreement StartAgreement ExpiryVendorIDCategory1Agreement StartAgreement ExpiryCategory2Agreement StartAgreement ExpiryCategory3Agreement StartAgreement ExpiryCategory4Agreement StartAgreement Expiry
3VendorID1Category1Title11/02/20191/01/2021VendorID1Title11/02/20191/01/2021Title21/20/20208/19/2021Title33/02/20203/02/2021Title43/02/20203/02/2021
4VendorID1Category2Title21/20/20208/19/2021VendorID2   Title53/02/20203/02/2021Title61/20/20208/19/2021Title73/02/20203/02/2021
5VendorID1Category3Title33/02/20203/02/2021VendorID3Title83/02/20203/02/2021         
6VendorID1Category4Title43/02/20203/02/2021VendorID4         Title93/02/20203/02/2021
7VendorID2Category2Title53/02/20203/02/2021             
8VendorID2Category3Title61/20/20208/19/2021             
9VendorID2Category4Title73/02/20203/02/2021             
10VendorID3Category1Title83/02/20203/02/2021             
11VendorID4Category4Title93/02/20203/02/2021             
Agreements
Cell Formulas
RangeFormula
H3:H11H3=IFERROR(INDEX($B$3:$B$100,MATCH(0,INDEX(COUNTIF($H$2:H2,$B$3:$B$100)+(B$3:B$100=""),0),0)),"")
I3:I11,L3:L11,O3:O11,R3:R11I3=IFERROR(INDEX($D$3:$D$100,MATCH($H3&"|"&I$2,INDEX($B$3:$B$100&"|"&$C$3:$C$100,0),0)),"")
J3:J11,M3:M11,P3:P11,S3:S11J3=IF(I3="","",INDEX($E$3:$E$100,MATCH($H3&"|"&I$2&"|"&I3,INDEX($B$3:$B$100&"|"&$C$3:$C$100&"|"&$D$3:$D$100,0),0)))
K3:K11,N3:N11,Q3:Q11,T3:T11K3=IF(I3="","",INDEX($F$3:$F$100,MATCH($H3&"|"&I$2&"|"&I3,INDEX($B$3:$B$100&"|"&$C$3:$C$100&"|"&$D$3:$D$100,0),0)))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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