VBA or Formula that combines two lists and outputs them in a particular format

kabutocat

New Member
Joined
Nov 30, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi all, I have two tables and it's hard to describe using words what I would like so I'll describe it using tables.

Table 1
CodeDescription
A01Liaison with Client
A02Desktop Analysis
A03Plan Output

Table 2
Phases
Preliminary
Detailed
Delivery

And I'd like a code that would produce something like this:
CodeDescriptionPhase
A01Liaison with Client
Preliminary
Detailed
Delivery
A02Desktop Analysis
Preliminary
Detailed
Delivery
A03Plan Output
Preliminary
Detailed
Delivery

Thank you for your help!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
With the setup below:
D4 =IF(MOD(ROW(A1),COUNTA($A$9:$A$11)+1)=1,INDEX($A$4:$A$6,MATCH(0,COUNTA($D$3:D3,$A$4:$A$6),0)),"")
E4 =IFERROR(VLOOKUP(D4,$A$4:$B$6,2,0),"")
F4 =IF(MOD(ROW(A1)-1,COUNTA($A$9:$A$11)+1)>0,INDEX($A$9:$A$11,MOD(ROW(A1)-1,COUNTA($A$9:$A$11)+1)),"")

1669816526011.png
 
Upvote 0
Solution

Forum statistics

Threads
1,215,430
Messages
6,124,849
Members
449,194
Latest member
HellScout

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