+ Reply to Thread
Results 1 to 9 of 9

Count Letters

  1. #1
    Registered User
    Join Date
    09-29-2016
    Location
    london
    MS-Off Ver
    2016
    Posts
    19

    Count Letters

    Hi

    I was hoping someone could help.

    Is there a way I can count the total number of letters in the + and - columns and populate K3 to K9 with the net totals ?

    So it looks at how may "+ A's there are in the + column, how many "-A's there are in the negative column and gives me the net number as a + or - in K

    Secondly is there a way to have these lined by and change dynamically in in columns M as the values in K change. Biggest number at top

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,972

    Re: Count Letters

    Maybe take a look at using teh COUNTIF() function?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,156

    Re: Count Letters

    Use a Pivot Table. Then you can easily re-order the values from high to low. You'd need to refresh the Pivot Table when you make changes.

    Otherwise, use COUNTIF as Ford has suggested but you'd need a second pair of columns to re-order the data using LARGE and INDEX/MATCH or VLOOKUP.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    09-29-2016
    Location
    london
    MS-Off Ver
    2016
    Posts
    19

    Re: Count Letters

    Hi

    CountIf worked great thank you.

    Are you able to help on the last part?

    So there are 7 products A,C,D,I,M,S,X

    I want to be positive on 3 and negative on 3, with no position on 1

    So if A is in the top 3 in the NET column (M) Q3 (Position) would = 3 (p3)

    IF A is in the bottom 3 in the NET column (M) Q3 (Position) would = -3 (P3*-1)

    The letter in the middle (not in top 3 or bottom 3 by count is always 0

    AND IF

    There are not any clear winners, such as positions, 3,4,5 are the same (M) it only assigns values in Q to the top 2 and bottom 2

    Thank you
    Attached Files Attached Files

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Count Letters

    What if there is tie in numbers
    if 3 and 4 th are same
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Count Letters

    q3=LOOKUP(COUNTIF(M$3:M$9,">"&M3)+COUNTIF(M$3:M3,M3),{1,4,5},{1,0,-1})*P3
    Try this and copy towards down

  7. #7
    Registered User
    Join Date
    09-29-2016
    Location
    london
    MS-Off Ver
    2016
    Posts
    19

    Re: Count Letters

    if 3 4 5 are the same it only does 1, 2, 6,7

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,156

    Re: Count Letters

    Thanks for the rep.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,972

    Re: Count Letters

    Thanks for the rep

+ 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. [SOLVED] Count Letters/Hyphenate?
    By DekHog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-20-2015, 04:47 AM
  2. I need the first 4 letters from a cell and i need to put a count at the end of each
    By nate02167 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-20-2013, 02:27 PM
  3. [SOLVED] Count sum of letters from the right in a cell
    By Gunilla in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-24-2012, 12:38 PM
  4. Count letters in cells
    By losmi8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2010, 11:29 PM
  5. count letters
    By kristygrippo in forum Excel General
    Replies: 3
    Last Post: 04-07-2009, 03:02 PM
  6. [SOLVED] How do i count numbers and letters to find a total count of all
    By Linda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2005, 12:55 PM
  7. [SOLVED] Count letters
    By JIM.H. in forum Excel General
    Replies: 4
    Last Post: 07-04-2005, 02:05 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