+ Reply to Thread
Results 1 to 8 of 8

Count by remark ,status

  1. #1
    Forum Contributor
    Join Date
    10-02-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2016
    Posts
    140

    Count by remark ,status

    Hi all
    Good days

    I have data in excel file
    Its have 3 sheets
    1st Sheet is "Data"
    2nd Sheet is "output"
    3rd Sheet is "all status"

    First I need to count total status code and remarked by user for "output"
    second Need to count total all status code and remarked by user for "all status"


    Everyday I will received data and need prepare all this output and all status as daily routine task

    I have attached sample data


    Thanks
    Raj
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count by remark ,status

    Put this formula in "Output B2" then copy right and down as required:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Put this in "all status B2" then copy right and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or you could use Pivot Tables.

    BSB

  3. #3
    Forum Contributor
    Join Date
    10-02-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2016
    Posts
    140

    Re: Count by remark ,status

    Hi
    I am very appreciate your help
    thanks for your reply

    For "all status" the formula is not working
    where it's get "0"
    Thanks

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count by remark ,status

    Note that "Amalina" is spelled incorrectly on the 'all status' sheet and will need amending before those numbers show correctly.

    BSB

  5. #5
    Forum Contributor
    Join Date
    10-02-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2016
    Posts
    140

    Re: Count by remark ,status

    Hi
    yes you correct and its working

    How if i need to write this formula into excel macro
    Thanks

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count by remark ,status

    User the 'Macro Recorder' whilst entering the formula and Excel will convert it into a format you can use in VBA'

    BSB

  7. #7
    Forum Contributor
    Join Date
    10-02-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2016
    Posts
    140

    Re: Count by remark ,status

    Hi

    Thanks for your solutions you are so good in excel

    Please advice me in here


    I write in excel module

    Worksheets("all status").Range("B2:AK42").Formula = "=COUNTIFS(Data!$J:$J,B$1,Data!$H:$H,$A2)"

    Is that a way for me just show the result and not fomula in each cells

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count by remark ,status

    In the attached there is a "Update Tables" button on a sheet called Control. Clicking that will fire the code below and will add the formulas provided earlier to the two tables then paste their values (getting rid of the formulas) after.
    Please Login or Register  to view this content.
    I've also included two new sheets with Pivot Tables that is perhaps the easier option for this.

    BSB
    Last edited by BadlySpelledBuoy; 01-29-2019 at 03:25 PM.

+ 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. status count with query type omitting one status
    By Naheed in forum Excel General
    Replies: 15
    Last Post: 06-24-2015, 09:12 AM
  2. Replies: 3
    Last Post: 09-11-2014, 04:32 PM
  3. How can i Count Status between two dates
    By mahender5 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2014, 02:04 AM
  4. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  5. Count by full status
    By alfredkri in forum Excel General
    Replies: 3
    Last Post: 11-27-2010, 08:46 AM
  6. How to count with 2 status combined?
    By Lewis Koh in forum Excel General
    Replies: 2
    Last Post: 07-26-2010, 10:08 PM
  7. [SOLVED] Status Bar : Display both Sum and Count
    By Keerthy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2005, 05:05 AM

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