+ Reply to Thread
Results 1 to 18 of 18

Count of Multiple sub categories

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    21

    Count of Multiple sub categories

    Hi
    I have attached the sample excel of exact replica of original with sheet names input and output. Obviously output is what required. It is little complicated. I would really appreciate your timely help on this.
    Excel version - 2010
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Count of Multiple sub categories

    So you want it to group all Name1's together by date and then Name2s and so forth?
    or would all the Date1s come first with names grouped and then Date2s?
    In other words, would your next entry be
    Name1 Date2
    or
    Name2 Date1?

    Orrrr
    Do you just want the output to show the filtered values (new layout)?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-18-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Count of Multiple sub categories

    grouped by names first then date, plan, risk....as shown in the output
    Name1. date1, date2...plan1,
    Name2. date1, date2...plan1

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count of Multiple sub categories

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in b3 of outout sheet and make sure the type1 should be same in both in Input & Output sheet

    Punnam

  5. #5
    Registered User
    Join Date
    10-18-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Count of Multiple sub categories

    thanks for the reply. Let me make it some more clear
    If Name1 in output matches with input, then it should bring out the values of corresponding dates,plan,risk . After which under types it should give count on respective match

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count of Multiple sub categories

    Did the function worked the requirement ?
    Attached Files Attached Files

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Count of Multiple sub categories

    Try

    E3
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag towards the cell
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  8. #8
    Registered User
    Join Date
    10-18-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Count of Multiple sub categories

    Sorry punnam. It was taking only counts of types. However if Name1 in output matches with input, then it should bring out the values of corresponding dates ,plan, risk. Col.B,C,D of Output sheet is variable based on Input sheet(If Name1 matches it should bring these fields from Input).

  9. #9
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count of Multiple sub categories

    you want Columns B,C,D to be populated based on Column A in Output sheet ?
    Attached Files Attached Files
    Last edited by Punnam; 05-11-2017 at 02:43 AM.

  10. #10
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count of Multiple sub categories

    @ krajivgandhi
    i Have uploaded the revised sheet in post 9 Check is this what you are looking for ?
    Punnam

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Count of Multiple sub categories

    Quote Originally Posted by krajivgandhi View Post
    Sorry punnam. It was taking only counts of types. However if Name1 in output matches with input, then it should bring out the values of corresponding dates ,plan, risk. Col.B,C,D of Output sheet is variable based on Input sheet(If Name1 matches it should bring these fields from Input).
    Did you check post #7 ???

  12. #12
    Registered User
    Join Date
    10-18-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Count of Multiple sub categories

    exactly. and then those count formulas will work accordingly. Thanks

  13. #13
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count of Multiple sub categories

    You need to change the name only in this sheet .

    The formula in Column B,C,D is a array function so after any correction made need to be clicked with Ctrl+Shift+Enter not just enter

    if everything is taken care mark the thread solved

    Punnam
    Last edited by Punnam; 05-11-2017 at 02:53 AM.

  14. #14
    Registered User
    Join Date
    10-18-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Count of Multiple sub categories

    wow...we are almost there. But I have checked it for name2, name3 with array formula. it did not work. may be I have gone wrong somewhere. pls refer attached and correct me

  15. #15
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count of Multiple sub categories

    hi,

    necessary changes have done please check the sheet.

    Punnam

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,194

    Re: Count of Multiple sub categories

    You will need to use an approach shown in the attached:

    in INPUT M:O

    Table which counts number of entries for each name plus cumulative (O2 must be 0)

    in B3 of OUPUT

    =IFERROR(INDEX(INPUT!$A$2:$A$12,SMALL(IF(INPUT!$B$2:$B$12=OUTPUT!$A3,ROW(INPUT!$B$2:$B$12)-ROW(INPUT!$B$2)+1),ROWS($1:1)-VLOOKUP($A3,INPUT!$M$2:$O$4,3,0))),0)

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.


    Copy down

    repeat for c and D changing highlighted range

    Ideally we need additional formula to create "Names" column A in output

    I am "out of the office" for most of the day.

  17. #17
    Registered User
    Join Date
    10-18-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Count of Multiple sub categories

    Hi Punnam, Sorry for the late reply. In the attached excel, you have put formula for Name 3. However the excel had not picked corresponding data for Name 3. Could you please help on this regard

  18. #18
    Registered User
    Join Date
    10-18-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Count of Multiple sub categories

    Hi john, Thanks a lot. Your attachment is suffice.

+ 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. Replies: 0
    Last Post: 02-24-2014, 03:15 PM
  2. Replies: 1
    Last Post: 05-15-2013, 06:55 AM
  3. [SOLVED] If names appears in range count and enter number in another cell. Split into categories
    By marsham in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2013, 06:18 PM
  4. [SOLVED] Count categories based on 2 different conditions
    By fablhof in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2013, 09:30 PM
  5. Tabulating multiple voters w/ multiple categories
    By larrystiver in forum Excel General
    Replies: 6
    Last Post: 09-24-2011, 02:49 PM
  6. Replies: 0
    Last Post: 07-22-2011, 03:51 PM
  7. Replies: 2
    Last Post: 12-09-2009, 05:01 AM
  8. [SOLVED] 2 categories-count the amount of orders per state
    By Joe Resler in forum Excel General
    Replies: 0
    Last Post: 11-02-2005, 06:17 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