+ Reply to Thread
Results 1 to 4 of 4

Different Counts based on differnt criteria in the same cell

  1. #1
    Registered User
    Join Date
    12-24-2006
    Posts
    32

    Different Counts based on differnt criteria in the same cell

    HI All
    I am wondering if anyone came across this, I have 2 different results in the same cell and would like to be able to have different counts based on the criteria in the cell and prior results, I can create this in two different cell formulas(c&D) however would like to be able to this in one formula.
    Thank you for your assistance
    Attached Files Attached Files

  2. #2
    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,917

    Re: Different Counts based on differnt criteria in the same cell

    do you want to add the values together, or do you jus want to show the 2 different values in the same cell?

    edit: scratch that, you cant have both answers if each condition is based on B
    Last edited by FDibbins; 05-11-2012 at 06:46 PM.
    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

  3. #3
    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,917

    Re: Different Counts based on differnt criteria in the same cell

    in D3, copied down, will this work for you?....

    =COUNTA($B$2:B3)+IF(B3="1",10,0)

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Different Counts based on differnt criteria in the same cell

    If column B always have just 0 & 1, here is one way.

    C2, then copy down.

    =INDEX(COUNTIF(B$2:B2,{0,1})+{0,10},B2+1)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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