List items under different headings in one column in another sheet

k9515

New Member
Joined
Jul 8, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
The source list will be pasted into a sheet and one column will have a varying number of items each time. I need to map the items under each standard subheading to another sheet so Xlookups work. The rows will change so the headings location will be in different rows each time. The users need to be able to just paste in the sheet and move on. Possible? Thanks

Heading 1
XYZ Fee
Commissioning
PM Fee
Consultant - Other
Heading 2
ABC Fee
Commissioning
PM Fee
Consultant - X
Support Allowance
Reimbursable Allowance
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
The source list will be pasted into a sheet and one column will have a varying number of items each time. I need to map the items under each standard subheading to another sheet so Xlookups work. The rows will change so the headings location will be in different rows each time. The users need to be able to just paste in the sheet and move on. Possible? Thanks

Heading 1
XYZ Fee
Commissioning
PM Fee
Consultant - Other
Heading 2
ABC Fee
Commissioning
PM Fee
Consultant - X
Support Allowance
Reimbursable Allowance
Thinking it might help to share that the headings are always the same and in the same order.
 
Upvote 0
Thinking it might help to share that the headings are always the same and in the same order.
Adding a better example in hopes someone has a solution.
 

Attachments

  • 2024-02-12_15-19-40.jpg
    2024-02-12_15-19-40.jpg
    220.6 KB · Views: 4
Upvote 0
Or see if this helps

Book1
ABCD
1HeadingAccounts Description
2Soft CostSoft Cost - CAP
3Soft CostWords 1
4Soft CostWords 2
5Soft CostPM Fee
6Soft CostConsultant - Other
7AllowancesAllowances
8AllowancesWords 1
9AllowancesWords 2
10AllowancesPM Fee
11AllowancesConsultant - Other
12AllowancesJLL FM Support Allowance
13AllowancesReimbursables Allowance
14
15Soft CostSoft Cost - CAP
16Soft CostWords 1
17Soft CostWords 2
18Soft CostPM Fee
19Soft CostConsultant - Other
20Soft Cost 
21Soft Cost 
22AllowancesAllowances
23AllowancesWords 1
24AllowancesWords 2
25AllowancesPM Fee
26AllowancesConsultant - Other
27AllowancesJLL FM Support Allowance
28AllowancesReimbursables Allowance
29Allowances 
30Allowances 
31
Sheet1
Cell Formulas
RangeFormula
B15:B30B15=IFERROR(INDEX($B$2:$B$13,AGGREGATE(15,6,(ROW($B$2:$B$13)-ROW($B$2)+1)/($A$2:$A$13=$A15),COUNTIF($A$15:$A15,$A15))),"")
 
Upvote 0
Solution
This is a solution

=IF( COUNTIF(A$12:A12,A12)>COUNTIF(_Map2[Headings],A12),"",INDEX(_Map2[Account Description],MATCH(A12,_Map2[Headings],0)+COUNTIF(A$12:A12,A12)-1))
 
Upvote 0
I tried, but had to download the mini-sheet app. I have a solution now. Will check to see if your solution works too.
Your solution also worked. Love it! Thank you, thank you!
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,952
Members
449,095
Latest member
nmaske

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