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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,214,897
Messages
6,122,141
Members
449,066
Latest member
Andyg666

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