+ Reply to Thread
Results 1 to 10 of 10

How to count number sheet with condition

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    How to count number sheet with condition

    Hi,

    Is there a way to count the number sheet with condition in a workbook? Like for example i want to count all sheet with starting name PO. I have attached file with desired output.
    Attached Files Attached Files
    Click * below if this answer helped

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,939

    Re: How to count number sheet with condition

    That's not really "counting" but, whatever, the only way I can think of doing it would be to use VBA.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to count number sheet with condition

    Quote Originally Posted by TMS View Post
    That's not really "counting" but, whatever, the only way I can think of doing it would be to use VBA.
    Yeah agree. I mean to Populate in the sheet.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,939

    Re: How to count number sheet with condition

    Still need VBA. Is that what you want?

  5. #5
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to count number sheet with condition

    Quote Originally Posted by TMS View Post
    That's not really "counting" but, whatever, the only way I can think of doing it would be to use VBA.
    Yeah agree. I mean to Populate in the sheet. Thank you for the response.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: How to count number sheet with condition

    Create Name Manager "Work_sheets" by using =GET.WORKBOOK(1)&T(NOW())
    then M2=IFERROR(INDEX(MID(Work_sheets,SEARCH("]",Work_sheets)+1,256),ROWS(M$2:M2)),"")
    TRY THIS AND COPY TOWARDS DOWN
    G5=IFERROR(INDEX($M:$M,SMALL(INDEX((LEFT($M$2:$M$47,LEN(G$4))<>G$4)*10^10+ROW($M$2:$M$47),0),ROWS($G$5:$G5))),"")
    AND COPY ACROSS
    find the attached file

    as TMS said it is a VBA
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to count number sheet with condition

    Quote Originally Posted by TMS View Post
    Still need VBA. Is that what you want?
    yes. is it possible?

  8. #8
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to count number sheet with condition

    Quote Originally Posted by nflsales View Post
    Create Name Manager "Work_sheets" by using =GET.WORKBOOK(1)&T(NOW())
    then M2=IFERROR(INDEX(MID(Work_sheets,SEARCH("]",Work_sheets)+1,256),ROWS(M$2:M2)),"")
    TRY THIS AND COPY TOWARDS DOWN
    G5=IFERROR(INDEX($M:$M,SMALL(INDEX((LEFT($M$2:$M$47,LEN(G$4))<>G$4)*10^10+ROW($M$2:$M$47),0),ROWS($G$5:$G5))),"")
    AND COPY ACROSS
    find the attached file

    as TMS said it is a VBA
    Thank you for this. But i have a question. can this file works on a free macro work book? as, I cannot see any VBA code.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: How to count number sheet with condition

    It will not works but you can to the following

    After getting the sheet names with the above, you need to copy the sheets names and paste them as pastespecial > values

  10. #10
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to count number sheet with condition

    Quote Originally Posted by nflsales View Post
    It will not works but you can to the following

    After getting the sheet names with the above, you need to copy the sheets names and paste them as pastespecial > values
    Thank you for the answer. I need it dynamically so I will use with macro enabled.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to count the number of cells before a condition is met?
    By svb08 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-28-2016, 07:46 PM
  2. [SOLVED] Count number of days according to a condition
    By tsakta13ole in forum Excel General
    Replies: 5
    Last Post: 10-06-2015, 08:41 AM
  3. count the number in if condition is met
    By chriskhan90 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2015, 06:35 AM
  4. Replies: 2
    Last Post: 05-20-2015, 08:26 AM
  5. Need to count number of rows until another specified condition is met.
    By UMBiii in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2014, 02:29 AM
  6. [SOLVED] Count number of name by condition of other column
    By him0331 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-12-2014, 09:50 AM
  7. [SOLVED] Count the number of times multiple condition are met
    By wishkey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2013, 07:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1