Vlookup

ifu06416

Board Regular
Joined
Sep 5, 2011
Messages
56
Office Version
  1. 365
Hi there,

I'm looking to set up a Vlookup formula to pull through the whole numbers from a list base on what category they belong to.

So in column F if i wanted the whole numbers associated with the planning category it would return 1, 2 & 3. If i wanted the numbers associated with PMO it would read 4 & 5. Each number would have it own cell.
1643642054236.png


Does anyone have any thoughts.

regards,

john,
 

Attachments

  • 1643641990449.png
    1643641990449.png
    130.7 KB · Views: 6

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
The biggest problem with your layout is the merged cells. It's very difficult to recognize that all the rows from 4 to 14 are Planning rows. You can unmerge B4:B14 and put Planning in each of them, or you can add a helper column as I did in column E. You can hide it if you don't want to see it. The G4 formula is for versions of Excel with FILTER, the F4 formula is for earlier versions. It would help if you could update your profile with the version you're using.

Book1 (version 1).xlsb
ABCDEFG
1
2
3WorkstreamOutline NumberTaskPMO
4Planning1Planning44
51.1Planning55
61.2Planning 
72Planning 
82.1Planning 
92.2Planning 
102.3Planning 
112.4Planning
123Planning
133.1Planning
143.3Planning
15PMO4PMO
164.1PMO
174.2PMO
184.3PMO
194.4PMO
204.5PMO
214.6PMO
225PMO
235.1PMO
245.2PMO
255.2.3PMO
265.3PMO
Sheet12
Cell Formulas
RangeFormula
G4:G5G4=FILTER(C4:C26,(E4:E26=F3)*IFERROR(INT(C4:C26)=C4:C26,0))
F4:F10F4=IFERROR(AGGREGATE(15,6,$C$4:$C$26/(INT($C$4:$C$26)=$C$4:$C$26)/($E$4:$E$26=$F$3),ROWS($F$4:$F4)),"")
E4:E26E4=IF(B4<>"",B4,E3)
Dynamic array formulas.
 
Upvote 0
The biggest problem with your layout is the merged cells. It's very difficult to recognize that all the rows from 4 to 14 are Planning rows. You can unmerge B4:B14 and put Planning in each of them, or you can add a helper column as I did in column E. You can hide it if you don't want to see it. The G4 formula is for versions of Excel with FILTER, the F4 formula is for earlier versions. It would help if you could update your profile with the version you're using.

Book1 (version 1).xlsb
ABCDEFG
1
2
3WorkstreamOutline NumberTaskPMO
4Planning1Planning44
51.1Planning55
61.2Planning 
72Planning 
82.1Planning 
92.2Planning 
102.3Planning 
112.4Planning
123Planning
133.1Planning
143.3Planning
15PMO4PMO
164.1PMO
174.2PMO
184.3PMO
194.4PMO
204.5PMO
214.6PMO
225PMO
235.1PMO
245.2PMO
255.2.3PMO
265.3PMO
Sheet12
Cell Formulas
RangeFormula
G4:G5G4=FILTER(C4:C26,(E4:E26=F3)*IFERROR(INT(C4:C26)=C4:C26,0))
F4:F10F4=IFERROR(AGGREGATE(15,6,$C$4:$C$26/(INT($C$4:$C$26)=$C$4:$C$26)/($E$4:$E$26=$F$3),ROWS($F$4:$F4)),"")
E4:E26E4=IF(B4<>"",B4,E3)
Dynamic array formulas.
Hi there,

Thanks for this! The formula was far more complicated than I could have figured out myself.

The helper column makes sense though and it all works great.

Thanks again,

John.
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,946
Members
449,134
Latest member
NickWBA

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