+ Reply to Thread
Results 1 to 19 of 19

Count/Sum Formula for large audit (150 tabs)

  1. #1
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Count/Sum Formula for large audit (150 tabs)

    Hello all. I am stumped so came back to the boards for the first time in roughly 2 years, as I know someone will know. I am working on a sheet that has over 150 tabs of information. It is a simple audit that allows for Yes, No or N/A to be selected for each audit category. I have an Outcome Summary tab that is pulling totals for all the audit information on each tab. I did a CountA statement to count any cells (from all worksheets) that had anything selected, so I have my count for the amount of files audited, but for the life of me I cannot come up with a formula that counts the ones that passed or failed the audit. Needs a formula that counts for Yes as 1, No as 0, N/A as 1 (these don't count against us) and doesn't return an error for a tab that wasn't selected. Any ideas???
    Last edited by markk2011; 04-25-2013 at 04:15 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help!

    So a reverse logical statement would be to count the ones that are NOT "No"...right?

    Try

    =COUNTIF(A:A,"<>No")

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Help!

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Help!

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    http://www.excelforum.com/excel-gene...need-help.html

    Thread Closed.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Help!

    I will re-open this post, the other 1 was closed. Please do not post duplicate threads, and please ammend your thread title

    Thanks

  6. #6
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Count/Sum Formula for large audit (150 tabs)

    Sorry about that. Title amended!

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Count/Sum Formula for large audit (150 tabs)

    And actually, my suggestion was a bit short sighted...

    =COUNTIF(A:A,"<>No")

    That will count blanks as well..

    try
    =SUM(COUNTIF(A:A,{"Yes","N/A"}))

  8. #8
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Help!

    Thanks Jonmo1, but that still produces a Value error for the tabs that are blank...

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Count/Sum Formula for large audit (150 tabs)

    Having 150 tabs sounds a bit crazy lol. Are the layouts the same on each? could you provide a *small* sample of what you are working with (no sensitive info), showing what you have, what you want and how you got that?

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  10. #10
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Count/Sum Formula for large audit (150 tabs)

    Here you go. I highlighted the column I need the formula for and redacted it to 3 tabs, filling in various choices for the first 2 tabs and leaving last tab empty so you have an example of the blanks. Thanks a ton all!
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Count/Sum Formula for large audit (150 tabs)

    No ideas from anyone?

  12. #12
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Count/Sum Formula for large audit (150 tabs)

    Just trying once more!

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Count/Sum Formula for large audit (150 tabs)

    sorry for the delay

    I am working on re-arranging your table completely, so that you have a table for your data, and then maybe another 1 that will extract as you want. If you want me to continue, I will, else if you thing that is not something that would work for you, let me know.

    See the attached for what I have so far (sheet4, its a work in progress)...
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Count/Sum Formula for large audit (150 tabs)

    FDibbins, I really appreciate it, but unfortunately, I have to stay in this format. Someone went ahead and submitted to the parties involved and now they are gung-ho about it! Ugh...

  15. #15
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Count/Sum Formula for large audit (150 tabs)

    Is there a way I could just have two cells (hidden of course) next to each section that only have one criteria set; one to pull the Yes count and one for the N/A count. Then I could have the total met count pull from those two numbers.

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Count/Sum Formula for large audit (150 tabs)

    Sorry, I uploaded the wrong file, I mistook this for another 1 i was working on

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Count/Sum Formula for large audit (150 tabs)

    If you add this to E18 in each sheet, copied down...
    =IF(C18="Yes",1,0)
    and this to F18 in each sheet, copied down...
    =IF(C18="N/A",1,0)

    Then in sheet1 you can use this...
    =SUM('(1): (3)'!E18:F18)

    This will give you a total of all Yes and N/A. You can hide the helpers if you want, and an easy way to insert the formulas into all the data sheets is to use group mode.

    click the 1st sheet, hold the shift and then click the last sheet. Now, whatever you do on 1 sheet, will be done to all of them. So type the 1st formula in, then copy it down. repeat for the 2nd formula and you'r done. Make sure you UNGROUP the sheets when finished - either right-click on a sheet name and select "ungroup" or just click on the summary sheet

  18. #18
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Count/Sum Formula for large audit (150 tabs)

    Thanks a ton. Was hoping to avoid having to go at it that way, but I can always use Kutools to mass produce the sheets. Works like a charm. Much appreciated.

  19. #19
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Count/Sum Formula for large audit (150 tabs)

    Happy to help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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