+ Reply to Thread
Results 1 to 9 of 9

Summing Cells Containing Letters & Numbers

  1. #1
    Registered User
    Join Date
    08-04-2019
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    2

    Summing Cells Containing Letters & Numbers

    Hi, I need help.

    I've created an excel sheet with a drop down list which includes numbers (and letters) in brackets. Eg: 8 (AL), 16 (AL) etc. See attached picture

    I need to create a formula that sums only the numbers in a column of cells excluding any letters or a cell with a only a letter. I dont want to split the cell as I need the drop down lists to include the letters as to specifiy something. I'll be using conditional formatting with the letters such as AL \ LSL

    Can anyone help?

    Grant
    Attached Images Attached Images

  2. #2
    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,719

    Re: Assistance in creating a formula

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here I'll do it for you this time.)
    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.

  3. #3
    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,719

    Re: Summing Cells Containing Letters & Numbers

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    08-04-2019
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    2

    Re: Summing Cells Containing Letters & Numbers

    Hi, here is a copy of the sheet I am trying to work with
    Attached Files Attached Files

  5. #5
    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,719

    Re: Summing Cells Containing Letters & Numbers

    OK - give us a clue!!! Where are the data you want to sum and where are the mocked up results you are expecting?

  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,719

    Re: Summing Cells Containing Letters & Numbers

    OK - I think I found it!

    Try this:

    SUM(IFERROR(VALUE(SUBSTITUTE(A1:C3,"C","")),""))

    or this:

    =SUM(IFERROR(VALUE(LEFT(SUBSTITUTE(E8:E99,"C",""),2)),""))/76

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Last edited by AliGW; 08-04-2019 at 09:57 AM.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Summing Cells Containing Letters & Numbers

    In AM8 then copy down

    =IF(ISNUMBER(FIND(" ",AJ8)),LEFT(AJ8,FIND(" ",AJ8)-1),"")

    Use AM8:AM80 for validation.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Summing Cells Containing Letters & Numbers

    If all of the numbers are only 1 or 2 digits followed by a space, then
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    should do it.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Summing Cells Containing Letters & Numbers

    Maybe this
    Enter formula in AM8 and copy down

    =IFERROR(-LOOKUP(1,-LEFT(AJ8,{1,2,3,4,5})),"C")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Replies: 1
    Last Post: 02-02-2017, 02:19 AM
  2. Assistance required with creating a formula for a named range of figures
    By magabicool in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2016, 11:47 AM
  3. Need assistance creating a formula for a weighted average.
    By J.Schultz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2016, 03:28 PM
  4. [SOLVED] Need assistance with creating a multiple criteria formula to calculate cost
    By robiton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2016, 12:00 PM
  5. [SOLVED] Needing assistance in creating a formula for data gathering
    By Burner1010 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2015, 09:28 AM
  6. Need assistance creating a formula to show the difference between two date/time
    By livebythecoad in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-15-2014, 11:20 PM
  7. Replies: 3
    Last Post: 01-21-2013, 09:07 PM

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