+ Reply to Thread
Results 1 to 14 of 14

Count formula required

  1. #1
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Count formula required

    I currently have a formula that counts the letter 'S' when placed in a grid COUNTIF(A4:D4,"S")

    The new formula I require needs to do the same accept it needs to convert to hours. I know that if I put *12 after the bracket it will multiply the S by 12 giving a toatl but I need the numeric to change.

    ie if i put S4 in A4 and S6 in A5 i need it to recognise these numbers and give a total at the end of 10

    so formula i need is S(any number) in say A4, S(any number) in say A5, Total = (numbers added)

    Any questions if I havent explained it enough please post
    Last edited by ukphoenix; 03-28-2012 at 08:26 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count formula required

    Ok.. ukphoenix.

    Do you need to know how many cell references are used in the formula

    =sum(a1,b1,c1).. and you need answer as 3 ?


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: Count formula required

    No what i need the formula to do is add up the numerics after the S. so it looks for the S first and then the numeric after (S4) and then gives a total at the end, of just the numerics added so if i put S4 and the S5 i need a total to return 9

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count formula required

    Hi UKPhoenix,

    See the attachment and the result in green cell. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: Count formula required

    Thanx Dili just what i needed it to do

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count formula required

    You are welcome ukphenix...

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: Count formula required

    Ok well it worked asfar as cells down, but doesnt work with cells across this is the formula i put in {=SUM(VALUE(MID(B4:AF4,2,50)))) and by entering the number S1 & S2 in cells K4 & L4, by your formula it should have returned a reply of 3 in cell AH4 but returns an error #VALUE!

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Count formula required

    Try this
    Please Login or Register  to view this content.
    Quang PT

  9. #9
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: Count formula required

    COOL YEP THAT ONE WORKS ASLONG AS ITS A CAPITAL 'S' WHERE DO I NEED TO ADD THE OPTION FOR IT PICK UP A LITTLE 's' ASWELL (JUST INCASE OF FUTURE TYPING ERRORS)

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Count formula required

    Try:
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: Count formula required

    Thanx Guys for all your help

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Count formula required

    You are wellcome and nice to help!

  13. #13
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: Count formula required

    I have a new problem with the formula here. It works asfar as counting the numbers but the issue i have is that the sheet uses other letters in other columns and is conflicting.
    How do I get it to only pick up the "L" and not the others
    Attached Files Attached Files
    Last edited by ukphoenix; 03-28-2012 at 04:26 AM.

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Count formula required

    Try this in AG3:
    Please Login or Register  to view this content.
    Confirmed with Ctrl-Shift-Enter

+ 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