Excel counter multiple tabs

dygitaldude

New Member
Joined
Apr 29, 2017
Messages
10
Order (A)Task (B)Status (C)Designated to (D)Completion Order (E)
1x.aPending
2x.bcompletedJohn1

<tbody>
</tbody>
3x.ccompletedJohn2

<tbody>
</tbody>

<tbody>
</tbody>

Hello geniuses,

I'm working with an excel workbook with multiple tabs. How would I insert name in Col 'D' and Count in Col 'E' once the status reads completed. And the counter will have to increment workbook wide since I'll be working in multiple tabs. For example if Order 2 is the first one to be completed it will have completing order 1, assume there is a next tab of similar 3 rows, and Order x.d is completed it will have completed order 2. And so on...

Any help is much appreciated.

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Here is 1 approach to this.

1. Create a list of all your sheet names. You could do this manually, or with the following UDF (user-defined function). However, because the UDF is a macro, you will need to enable macros and save as .xlsb

To get a list of sheet names
Create a range name (I called mine Sheetnanes
Refers to: =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")

Then put this in a cell and copy down (started in A2)...
=IFERROR(INDEX(Sheetnames,ROWS($A$2:A2)),"")

If you want to be able to click the cell and go to that worksheet, change that formula to this...
=IFERROR(HYPERLINK("#"&"'"&INDEX(Sheetnames,ROWS($A$2:A2))&"'!A1",INDEX(Sheetnames,ROWS($A$2:A2))),"")

Then to do the count, put this where you need the answer to be...
=SUMPRODUCT(SUMIF(INDIRECT("'"&sheetnames&"'!T6:T1000"),C7,INDIRECT("'"&sheetnames&"'!M6:M1000")))
adjust me ranges (bolded) as needed to suite your data
 
Upvote 0
Here is 1 approach to this.

1. Create a list of all your sheet names. You could do this manually, or with the following UDF (user-defined function). However, because the UDF is a macro, you will need to enable macros and save as .xlsb

To get a list of sheet names
Create a range name (I called mine Sheetnanes
Refers to: =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")

Then put this in a cell and copy down (started in A2)...
=IFERROR(INDEX(Sheetnames,ROWS($A$2:A2)),"")

If you want to be able to click the cell and go to that worksheet, change that formula to this...
=IFERROR(HYPERLINK("#"&"'"&INDEX(Sheetnames,ROWS($A$2:A2))&"'!A1",INDEX(Sheetnames,ROWS($A$2:A2))),"")

Then to do the count, put this where you need the answer to be...
=SUMPRODUCT(SUMIF(INDIRECT("'"&sheetnames&"'!T6:T1000"),C7,INDIRECT("'"&sheetnames&"'!M6:M1000")))
adjust me ranges (bolded) as needed to suite your data


Thank you kindly.
 
Upvote 0

Forum statistics

Threads
1,215,497
Messages
6,125,158
Members
449,208
Latest member
emmac

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