+ Reply to Thread
Results 1 to 12 of 12

calculate the absentees

  1. #1
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    calculate the absentees

    kindly go through the attachment and suggest how to calculate the "absentees" correctly.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: calculate the absentees

    Your formula in column H has a space after ABS (that is, "ABS "). Correct this by getting rid of that space and then using this:

    =COUNTIFS(C2:C16,"<>",H2:H16,"ABS")

    Otherwise, you would have to use this:

    =COUNTIFS(C2:C16,"<>",H2:H16,"ABS ")

  3. #3
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: calculate the absentees

    thanks a lot for the suggestion. yes ,the space created the problem.your first formula works fine. but what is the difference in the second formula?

    i would like to know what does it mean when you use "<>"
    Last edited by AliGW; 10-22-2017 at 03:38 AM. Reason: Unnecessary quotaion removed.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: calculate the absentees

    You're welcome.

    The second formula just included the space after ABS whereas the first formula did not. Since you get rid of the space in the formula in column H, you don't have to include it in this one.

    "<>" means not blank

    "" means blank.

    If that answered your original question, please mark this thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: calculate the absentees

    thanks a lot. applied your formula in another instance and i got error. pls see the new attachment.
    Attached Files Attached Files
    Last edited by AliGW; 10-22-2017 at 03:39 AM. Reason: Unnecessary quotaion removed.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: calculate the absentees

    The cells in column C are not being seen as blank for some reason.

    Highlight column C > Data > Text to Columns > Finish

    Then the formula will work as expected.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: calculate the absentees

    Or you can change the formula to this:

    =SUMPRODUCT((C1:C50<>"")*(H1:H50="ABS"))

  8. #8
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: calculate the absentees

    63falcondude,what a majic!.data- text to columns.( the data was copy pasted ) done . thanks a lot.



    But in the real situation, the first formula still gives error while the second one is working fine.
    =SUMPRODUCT((C1:C50<>"")*(H1:H50="ABS")) ----this one works
    though i have done the text to columns direction, it is not working there. fyi, the content in the columns are the product of some linked sheets. may be that is why it created problem??
    Last edited by sumesh56; 10-22-2017 at 02:54 AM.

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: calculate the absentees

    You're very welcome. Happy to help.

    Thanks for the rep!

  10. #10
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: calculate the absentees

    i applied the formula into different situations and getting error. pls see the attachment. instead of "abs" i have put "0"......thanks
    Last edited by sumesh56; 10-22-2017 at 08:25 AM.

  11. #11
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: calculate the absentees

    see this is what you looking for.!

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: calculate the absentees

    That would be:

    D61 =SUMPRODUCT(($C1:$C45<>"")*(D1:D45=0))

    or

    D61 =COUNTIFS($C1:$C45,"<>",D1:D45,0)

    Dragged to the right.

+ 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. Count Absentees and zero marks in subjects
    By nirmishkb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2017, 12:47 PM
  2. Replies: 5
    Last Post: 06-11-2017, 01:51 AM
  3. [SOLVED] Formula: If cell 3 is blank have cell 1 calculate, if cell 3 filled have cell 2 calculate
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2016, 09:34 AM
  4. Code to Calculate the product of two matrices won't calculate
    By njrobby in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2015, 01:37 AM
  5. Target.Calculate to Me.Calculate breaks Copy/Paste
    By vayana in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2013, 10:36 AM
  6. [SOLVED] Calculate values in col B based on value in col B but only calculate final 5 instances
    By arnoldd99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 11:53 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