+ Reply to Thread
Results 1 to 7 of 7

Failed attempts to sum up values from middle of cell

  1. #1
    Registered User
    Join Date
    03-21-2020
    Location
    Toronto, Canada
    MS-Off Ver
    Office 365
    Posts
    4

    Red face Failed attempts to sum up values from middle of cell

    Good day,

    First time posting on here.

    I am trying to sum up values categorized by their respective labels from a row of cells. The tough part is some of the values appear in the middle of cell.

    As seen in the attached file, the first row shows the expected values from summing up the various fields. The second row onward shows my attempts in working towards the expected result but failed for various reasons.

    Of course the original spreadsheet has a lot more cell values to sum up. I've only extracted a sample.

    Thanks in advance for any help you can provide. Thanks!
    Attached Files Attached Files
    Last edited by dragonRiders; 03-22-2020 at 11:44 PM.

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

    Re: Failed attempts to sum up values from middle of cell

    Using your sample workbook (and Office 365),
    this regular formula returns the value you're looking for:
    Please Login or Register  to view this content.
    Copy that formula across through I6.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    03-21-2020
    Location
    Toronto, Canada
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Failed attempts to sum up values from middle of cell

    Quote Originally Posted by Ron Coderre View Post
    Using your sample workbook (and Office 365),
    this regular formula returns the value you're looking for:
    Please Login or Register  to view this content.
    Copy that formula across through I6.
    Is that something you can work with?


    Thanks for your quick response. However not sure if I'm missing something but all I'm getting from that formula is 0.
    I've added your code into Row 11 on the attached spreadsheet.
    Looking forward to further assistance.
    Attached Files Attached Files

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

    Re: Failed attempts to sum up values from middle of cell

    Remove the @ symbols in the formulas on Row_11. I don't have them in the formula I posted.

    Does that help?

  5. #5
    Registered User
    Join Date
    03-21-2020
    Location
    Toronto, Canada
    MS-Off Ver
    Office 365
    Posts
    4

    Question Re: Failed attempts to sum up values from middle of cell

    Quote Originally Posted by Ron Coderre View Post
    Remove the AT symbols in the formulas on Row_11. I don't have them in the formula I posted.
    Does that help?


    Sorry but I am still totally lost. I don't see any AT symbols which you may refer to (forum is not allowing me to post the actual symbol as a newbie). Here are the cell formulas after copy and pasting across row 11.

    F11: =SUM(--TRIM(LEFT(IFERROR(MID(" "&$B11:$E11,SEARCH(" "&F$4&" "," "&UPPER($B11:$E11))+LEN(F$4)+3,99),"0"),2)))
    G11: =SUM(--TRIM(LEFT(IFERROR(MID(" "&$B11:$E11,SEARCH(" "&G$4&" "," "&UPPER($B11:$E11))+LEN(G$4)+3,99),"0"),2)))
    H11: =SUM(--TRIM(LEFT(IFERROR(MID(" "&$B11:$E11,SEARCH(" "&H$4&" "," "&UPPER($B11:$E11))+LEN(H$4)+3,99),"0"),2)))
    I11: =SUM(--TRIM(LEFT(IFERROR(MID(" "&$B11:$E11,SEARCH(" "&I$4&" "," "&UPPER($B11:$E11))+LEN(I$4)+3,99),"0"),2)))

    I wonder if different versions of Excel show formulas inconsistently?
    Is it possible that you update my Excel file directly and post it back here?
    Sorry for the trouble and thanks in advance for your help!
    Last edited by dragonRiders; 03-22-2020 at 03:28 PM.

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

    Re: Failed attempts to sum up values from middle of cell

    Well, I'm a bit puzzled. This is the formula I see in the last file you posted:
    Please Login or Register  to view this content.
    But, no matter.... I've attached an edited version of that file. It should display the values you're looking for.

    Does that help?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-21-2020
    Location
    Toronto, Canada
    MS-Off Ver
    Office 365
    Posts
    4

    Talking Re: Failed attempts to sum up values from middle of cell

    Quote Originally Posted by Ron Coderre View Post
    Well, I'm a bit puzzled. This is the formula I see in the last file you posted:
    But, no matter.... I've attached an edited version of that file. It should display the values you're looking for.
    Does that help?
    Yes, it's working now. Thanks so much for your 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. Cell not getting highlighted in the first attempt
    By sandu1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2016, 12:56 AM
  2. Replies: 2
    Last Post: 02-07-2015, 06:25 PM
  3. [SOLVED] Picking out middle values in a cell
    By Chopper50 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-29-2014, 09:18 AM
  4. Re-Login after Login attempt failed
    By raw_geek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2014, 05:24 AM
  5. [SOLVED] Attempt to fetch data from another file using OFFSET() failed
    By billj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 09:49 AM
  6. Cell values in the middle of a formula
    By HDEStephen in forum Excel General
    Replies: 9
    Last Post: 09-07-2010, 06:22 PM
  7. [SOLVED] Error Handling an attempt to change a protected cell
    By crazybass2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2005, 05:50 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