+ Reply to Thread
Results 1 to 7 of 7

IFERROR AND COUNTIF function problem

  1. #1
    Registered User
    Join Date
    06-19-2014
    Location
    Manila, Philippines
    MS-Off Ver
    Office for Mac
    Posts
    11

    IFERROR AND COUNTIF function problem

    I am trying to find out how i can go about it. Please refer to the attached image.

    P is Present and A is absent. I know how to use COUNTIF function but i want to know if what i want is possible. It's like answering 1+1+0+1=1 or vice versa. I want to be able to have an answer of 1 even though the person was present 3 times. Please help me
    Attached Images Attached Images
    Last edited by akosibhon; 06-19-2014 at 02:58 AM.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: I am learning and need help!

    Hi,

    Welcome to the Forum.

    Please try the following formula in F1:

    =IFERROR(COUNTIF(A1:E1,1)/COUNTIF(A1:E1,1),0)

  3. #3
    Registered User
    Join Date
    06-19-2014
    Location
    Manila, Philippines
    MS-Off Ver
    Office for Mac
    Posts
    11

    Re: I am learning and need help!

    Sorry, I tried but it seems not working
    Last edited by akosibhon; 06-19-2014 at 02:44 AM.

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: I am learning and need help!

    I meant F2, its the cell where you want the output to be.


    =IFERROR(COUNTIF(A2:E2,"P")/COUNTIF(A2:E2,"P"),0)
    Last edited by cbatrody; 06-19-2014 at 02:47 AM.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: I am learning and need help!

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Registered User
    Join Date
    06-19-2014
    Location
    Manila, Philippines
    MS-Off Ver
    Office for Mac
    Posts
    11

    Re: I am learning and need help!

    yay! it works! thank you so much!!

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: IFERROR AND COUNTIF function problem

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Learning VBA
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 12-11-2013, 12:58 PM
  2. Learning VBA
    By andrewc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2013, 05:43 AM
  3. Always Learning
    By Airskip2012 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 04-22-2012, 11:58 AM
  4. Learning VBA - Suggestion for Beginners Learning Curve
    By sighlent1 in forum Excel General
    Replies: 1
    Last Post: 08-26-2010, 12:58 PM
  5. Learning VBA
    By Althas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2008, 11:14 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