SOLVED

How to get total number of file counts in SharePoint?

Copper Contributor

Hello All,
I have uploaded multiple folder in SharePoint Site, but many files failed to upload.

So now I wants to check in SharePoint that particular folder contain how many subfolders and total files.

 

Like in windows we right click on folder and hit on properties so it shows total number of files in particular folder.

 

So can anyone help me for that in share point?

 

Note: I have multiple subfolders so "Item Child Count" and "Folder Child Count" columns not useful for me.

 

Thanks,

VP

5 Replies
Did you try an export to excel? Open it up and insert a pivot table using Path for rows to get the full folder path and count of files.

@PamDeGraffenreid  Can you pls explain me step?

If PowerShell, ShareGate, or any other nice tools are not available, PowerQuery can work adequately.

In Excel (or PowerBI) : Get data -> From file -> From Sharepoint Folder -> enter your site URL.

Gives a list of all files with the folder path for each file. Work with the folder path (Text to columns maybe) and then pivot to get folders, subfolders, counts, as @PamDeGraffenreid noted.

Not pretty but it works :)
best response confirmed by VPatel21 (Copper Contributor)
Solution

@VPatel21  Here you go

1- Export to Excel

PamDeGraffenreid_0-1654271036491.png

2 -  Open the downloaded file into Excel.  You may get a security prompt, click Enable.  The table will be selected by default when it opens.

3 - Go to the Insert Tab, and select Pivot Table

PamDeGraffenreid_1-1654271150985.png

4 - Configure your PivotTable fields like this...

PamDeGraffenreid_2-1654271223795.png

Result:

At the top level there are 4 folders and two files

Every folder has a unique path, so for each path (folder) - you'll get a count of files and folders.

PamDeGraffenreid_3-1654271326385.png

Good luck!

 

 

 

 

 

Thanks, this was very helpful!
1 best response

Accepted Solutions
best response confirmed by VPatel21 (Copper Contributor)
Solution

@VPatel21  Here you go

1- Export to Excel

PamDeGraffenreid_0-1654271036491.png

2 -  Open the downloaded file into Excel.  You may get a security prompt, click Enable.  The table will be selected by default when it opens.

3 - Go to the Insert Tab, and select Pivot Table

PamDeGraffenreid_1-1654271150985.png

4 - Configure your PivotTable fields like this...

PamDeGraffenreid_2-1654271223795.png

Result:

At the top level there are 4 folders and two files

Every folder has a unique path, so for each path (folder) - you'll get a count of files and folders.

PamDeGraffenreid_3-1654271326385.png

Good luck!

 

 

 

 

 

View solution in original post