Best manner at getting 0 of a group of indices.

jaeiow

Board Regular
Joined
Jun 12, 2022
Messages
139
Office Version
  1. 365
Platform
  1. Windows
Apologies for not using Xl2bb, it doesn't seem to work on my work computer. Here I have an output of power query that i hope to use in further as a metadata tagging tool. What is the most efficient way to get the 0 index for each folder group? I wanted it to display like this for ease of reading. I could make a new column and fill down the folder path, but I feel that this is more comfortable. But how do I reference the group without a formula that is going to grab the whole column?
I have:
Excel Formula:
=@XLOOKUP(0,$C$3:$C5,$D$3:$D5,0,0,-1)
or
Excel Formula:
=INDEX(SORT(FILTER($C$3:$D$1102,$B$3:$B$1102=B4),1,1),1,2)

Which is more efficient or is there a better way?

Folder Path
4​
0​
C:\Export files from local folders\DATA\Input2
File Name/Properties
4​
1​
ALAN.xlsx 3/7/2022 1:05:04 PM 64588 B
File Name/Properties
4​
2​
ANNA.xlsx 3/7/2022 1:05:04 PM 103084 B
File Name/Properties
4​
3​
ARTHUR.xlsx 3/7/2022 1:05:04 PM 25816 B
File Name/Properties
4​
4​
BANNER.xlsx 3/7/2022 1:05:04 PM 15869 B
...


Folder Path
7​
0​
C:\Export files from local folders\DATA\Input5
File Name/Properties
7​
54​
2018.xlsx 3/7/2022 1:05:07 PM 17270 B
File Name/Properties
7​
55​
2019.xlsx 3/7/2022 1:05:07 PM 17111 B
File Name/Properties
7​
56​
2020.xlsx 3/7/2022 1:05:07 PM 17158 B
Folder Path
8​
0​
C:\Export files from local folders\DATA\Input6
File Name/Properties
8​
57​
BRUCE.xlsx 3/7/2022 1:05:07 PM 69937 B
File Name/Properties
8​
58​
PETER.xlsx 3/7/2022 1:05:07 PM 39039 B
File Name/Properties
8​
59​
TIM.xlsx 3/7/2022 1:05:07 PM 21047 B
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,215,064
Messages
6,122,937
Members
449,094
Latest member
teemeren

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