+ Reply to Thread
Results 1 to 13 of 13

Add up specific numbers from a cell

  1. #1
    Registered User
    Join Date
    02-27-2024
    Location
    Manchester
    MS-Off Ver
    Professional Plus 2021
    Posts
    3

    Add up specific numbers from a cell

    Hi,

    I have a data set that contains shipping information. The package details (number/weight/volume) are all contained in one cell. Is there a formula that will identify all of the weights and add them up?

    For example: The below is from 1 cell and shows that there are 2 packages totaling 1217kgs (418kg+799kg). is there a formula that will just identify the 2 weights an total them?
    1 PKG | 418 Kg | 0.509 m3 | 1 PKG | 799 Kg | 0.691 m3

    Thanks,
    Banno123

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

    Re: Add up specific numbers from a cell

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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 Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Add up specific numbers from a cell

    Solution.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-27-2024
    Location
    Manchester
    MS-Off Ver
    Professional Plus 2021
    Posts
    3

    Re: Add up specific numbers from a cell

    DJunqueira Thank you so much, this has worked really well

    I have another version as per attached sample but you will see that this also has "Kg CW" in it. Is it possible to have 3 formulas? one to sum the total "Kg", one to sum the "m3" and one to sum the "Kg CW"?

    My understanding of Excel is not good enough to decipher your formula!

    Thanks
    Banno123
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Add up specific numbers from a cell

    The formulas are there, but they are dependent of you decimal system, point or comma separator.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-27-2024
    Location
    Manchester
    MS-Off Ver
    Professional Plus 2021
    Posts
    3

    Re: Add up specific numbers from a cell

    Amazing....that works really well.
    Thank you so much

  7. #7
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Add up specific numbers from a cell

    Tks for the feedback, glad to help.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Add up specific numbers from a cell

    Please Login or Register  to view this content.

    Cell C2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Cell D2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Cell E2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by wk9128; 02-28-2024 at 08:17 AM.

  9. #9
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Add up specific numbers from a cell

    wk9128 points an interesting situation, we have sub-use LAMBDA function to create new personal functions.
    Following this line of thought I created the function bellow (not VBA macro).

    Function name 'ShipInfo':
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by DJunqueira; 02-28-2024 at 08:27 PM. Reason: Fix function formula

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Add up specific numbers from a cell

    hi DJunqueira

    Cell C9 should be 1300 not 1.3

  11. #11
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Add up specific numbers from a cell

    Hi wk9128, this is due to my regional decimal system, Banno123 has a different one.

  12. #12
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Add up specific numbers from a cell

    Forgot, different countries, regional decimal systems, misunderstood you, I apologize to you here

    D2:D11 I will see # Value here!, How to avoid it again

  13. #13
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Add up specific numbers from a cell

    D2:D11 is the same regional decimal problem, if you have the right one just reactivate the formula.

    Please, keep checking me, the best moment of the forum is when exchange ideas.

+ 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-17-2023, 11:25 AM
  2. [SOLVED] If cell has numbers and specific text, sum numbers with multiple criteria
    By jj2105 in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 05-31-2022, 05:41 AM
  3. Fill numbers down to a specific value in another cell.
    By leaning in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-30-2018, 03:22 PM
  4. [SOLVED] Want to get specific numbers from cell
    By fahadmohsin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-07-2016, 04:40 AM
  5. Formula to select specific numbers from a cell and input into another cell
    By highrankednoob in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-12-2013, 06:28 PM
  6. [SOLVED] Look for specific numbers to put in one cell
    By Karnik in forum Excel General
    Replies: 6
    Last Post: 11-22-2012, 12:09 AM
  7. Highlight a row if a specific cell is specific numbers/words
    By sea0221 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2005, 09:06 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