+ Reply to Thread
Results 1 to 5 of 5

Changing COUNTIF to SUMIF using letters before numbers

  1. #1
    Registered User
    Join Date
    05-17-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Changing COUNTIF to SUMIF using letters before numbers

    Hello everyone and thanks for reading my first post. I'm not exactly great with the formulas in Excel and would really appreciate any help on this one.

    If this question has been answered before and anyone can provide a link to information that would work too. I've been researching this all week and haven't found anything to answer my questions.

    I found a file online that someone created which fit my usage 90%. (see attached)

    The problem is that our company uses hours for every employee instead of days. So anywhere from 0.5-8 hours can be taken as either Other, Unpaid, or Vacation time.

    Is there anyway to change each COUNTIF to a SUMIF (or another function) and include a way to recognize the numbers as "O8" or "V3"? I've tried everything I can think off but it's a little too complicated for me.

    I just need to be able to track each employee accordingly through the entire year while having the calendar feature available for record keeping.

    Any ideas? Maybe even a different template altogether? lol

    Thank you!!
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Changing COUNTIF to SUMIF using letters before numbers

    Do you mean perhaps in P10 of the monthly sheets...

    =SUMPRODUCT(--(LEFT($N10:$AR10)=I$8),("0"&MID($N10:$AR10,2,10))+0)

    copied across and down?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Changing COUNTIF to SUMIF using letters before numbers

    Using your posted workbook....These formulas return the appropriate hours
    Please Login or Register  to view this content.
    Copy that formula across through M10 (adjust column widths as necessary)

    Note: If your work day is not 8 hours...change the 8's to the correct value.


    Is that something you can work with?
    Attached Files Attached Files
    Last edited by Ron Coderre; 05-17-2012 at 04:24 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    07-24-2009
    Location
    Constanta
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Changing COUNTIF to SUMIF using letters before numbers

    Hello,
    Also try this in I11:
    Please Login or Register  to view this content.
    This will look at p4, p5, p10 etc and sum only the numbers 4+5+10 etc

  5. #5
    Registered User
    Join Date
    05-17-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Changing COUNTIF to SUMIF using letters before numbers

    Fantastic! Those formulas are great. I don't have any problem with changing the formula on each sheet, as long as it works.

    Thank you so much! I've been trying to get this for a week. Solved :D

+ 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