+ Reply to Thread
Results 1 to 9 of 9

X out of Y in Excel Formula needed

  1. #1
    Registered User
    Join Date
    02-21-2017
    Location
    London
    MS-Off Ver
    MS 365 (apps for business)
    Posts
    32

    X out of Y in Excel Formula needed

    hi all

    firstly APOLOGIES if this has been asked elsewhere.. i didn't know what to look for and i need some info/help quite quickly.

    i have an attendance record in excel for meeting attendees (who get paid annually for their attendance).

    i want to add a formula that will actually state something like '2/4' in the 'meetings attended' column for each attendee when I've have added a 'Y' or 'N' in the respective cell (screenshot attached).

    i'm not sure if this is even possible. but would REALLY appreciate some help if it is... or someone telling me if it's not and suggest a workaround.

    THANK YOU SO MUCH IN ADVANCE! attendance record.PNG

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: X out of Y in Excel Formula needed

    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    4
    Y Y Y Y Y Y 6/6 N4: =COUNTIF(B4:L4, "y") & "/" & COUNTA(B4:L4)
    5
    N Y N N Y Y 3/6
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-21-2017
    Location
    London
    MS-Off Ver
    MS 365 (apps for business)
    Posts
    32

    Re: X out of Y in Excel Formula needed

    omg! i love excel guru's! you are awesome!

    thank you soooooo much!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: X out of Y in Excel Formula needed

    You're welcome.

  5. #5
    Registered User
    Join Date
    02-21-2017
    Location
    London
    MS-Off Ver
    MS 365 (apps for business)
    Posts
    32

    Re: X out of Y in Excel Formula needed

    Hello - i've tried using the same formula as per a previous document i used and had help for in 2017, however it doesn't seem to work in some rows!
    please can someone help with why it's working on some and not all rows- I have to submit a report to the Chair of the Board this afternoon - so if someone can advise, i would be extremely grateful.

    thank youAttendance Log - version 2022.xlsx
    Last edited by AliGW; 09-21-2022 at 07:02 AM. Reason: Urgency removed from post.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: X out of Y in Excel Formula needed

    You've got some trailing spaces, so try this:

    =COUNTIF(E11:BC11, "Y*") & "/" & COUNTA(E11:BC11)
    Attached Files Attached Files
    Last edited by AliGW; 09-21-2022 at 07:14 AM. Reason: Added example workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: X out of Y in Excel Formula needed

    Any good?

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  8. #8
    Registered User
    Join Date
    02-21-2017
    Location
    London
    MS-Off Ver
    MS 365 (apps for business)
    Posts
    32

    Re: X out of Y in Excel Formula needed

    Thank you AliGW!

    That worked a charm! :-)

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: X out of Y in Excel Formula needed

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. excel formula needed
    By farid8830 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2017, 02:59 AM
  2. Help needed with excel formula
    By krishna6693 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2014, 04:36 PM
  3. excel formula
    By felixpanganiban in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2013, 01:41 AM
  4. [SOLVED] excel formula needed.....
    By eddyboy121 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-08-2013, 07:00 PM
  5. Countif/sumif excel formula
    By strait150 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2013, 06:04 PM
  6. Excel - formula help needed
    By GimmeStars in forum Excel General
    Replies: 1
    Last Post: 01-31-2006, 01:20 PM
  7. Excel formula help needed
    By psying in forum Excel General
    Replies: 1
    Last Post: 03-01-2005, 04:45 AM

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