+ Reply to Thread
Results 1 to 7 of 7

Calculate number of "A" in particular cells

Hybrid View

  1. #1
    Registered User
    Join Date
    11-13-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Calculate number of "A" in particular cells

    Hi All,

    I have one excel sheet with columns from A to LZ and number of rows.
    Each column have only letter (one of A,B,C,D,E). This if for weekly table:

    COLUMN define: Mon-Sun
    ROWS define: work type (A B C or D)

    For example;
    COLUMNS: Su-Mo-Tu-We-Th-Fr-Sa-Su-Mo-......
    ROWS: A -A - B - B - B - B - B -C - C - ......till column LZ.

    Issue:
    I want a formula for any row, from which, I can calculate (for that particular row) number of B's on Mo-Tu right from column A till LZ.

    Appreciate you help..

  2. #2
    Forum Contributor
    Join Date
    12-02-2008
    Location
    India
    Posts
    118

    Re: Calculate number of "A" in particular cells

    Didnt get the structure of ur table... can u post a sample

  3. #3
    Registered User
    Join Date
    11-13-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Calculate number of "A" in particular cells

    Hi Mohit..

    I copied few cells from two rows and pasted below:
    -----------------------------------------------------
    Fri Sat Sun Mon Tue Wed Thu Fri Sat
    A B B B D D B A C <<
    -----------------------------------------------------
    So the last (where I have marked <<) I want to use a formula that will calculate, say, number of A's present under Fri in one row. (here answer should be two).

    Logic might be...
    Checking for alphabet under "Fri"...if it is "A", count=count + 1...something of that sort.

    Hope I am clear this time.

  4. #4
    Registered User
    Join Date
    11-13-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Calculate number of "A" in particular cells

    Sorry for the format error...I have attached one row sample.
    Let me know if you require more clarification.
    Attached Files Attached Files

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Calculate number of "A" in particular cells

    How about

    =SUMPRODUCT(--(A2:R2="A"),--(A1:R1="Fri"))

    hth

  6. #6
    Registered User
    Join Date
    11-13-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Re: Calculate number of "A" in particular cells

    Thanks a lot Teylyn..

    This is precisely what I was looking for

  7. #7
    Forum Contributor
    Join Date
    12-02-2008
    Location
    India
    Posts
    118

    Re: Calculate number of "A" in particular cells

    Hey,
    Sorry i couldnt get back to u earlier and even though u have the solution to ur problem, mebbe u cud use this simpler looking formula... :P

    =SUMPRODUCT((A1:R1="Tue")*(A2:R2="B"))

    Even this formula will work...

    Regards
    Mohit

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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