+ Reply to Thread
Results 1 to 5 of 5

Sum & difference between multiple values in single cell

  1. #1
    Registered User
    Join Date
    04-12-2011
    Location
    romania
    MS-Off Ver
    Excel 2007
    Posts
    8

    Exclamation Sum & difference between multiple values in single cell

    Hello again,

    I have 4 coloumns: IN , OUT, IN-OUT &IN+OUT. In each coloumn there are multiple values. For example, IN has 23:44;33 as values. OUT has 22;21;13 as values.

    Now, what I would like to do is A SUM between these values but also A DIFFERENCE between them. Can you help me?

    Thank you so much!
    Attached Files Attached Files
    Last edited by iuliandonici; 04-14-2011 at 12:19 AM. Reason: The problem has been solved

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum & difference between multiple values in single cell

    Are the entries always made of 3 numbers of 2 digits each?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-12-2011
    Location
    romania
    MS-Off Ver
    Excel 2007
    Posts
    8

    Exclamation Re: Sum & difference between multiple values in single cell

    Quote Originally Posted by NBVC View Post
    Are the entries always made of 3 numbers of 2 digits each?
    Please excuse me, didn't think to mention this. No. Sometimes, in a single cell can be up to 50 numbers and each one of them can have up to 7 digits.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum & difference between multiple values in single cell

    This will require a User Defined Function (UDF)

    Add this UDF to your VB editor (Alt+F11, Insert|Module) and paste:

    Please Login or Register  to view this content.
    Then in E7 enter formula:

    Please Login or Register  to view this content.
    Then confirm the formula with CTRL+SHIFT+ENTER not just ENTER

    in F7:

    Please Login or Register  to view this content.
    Then confirm the formula with CTRL+SHIFT+ENTER not just ENTER


    both formulas can be copied down if necessary.
    Attached Files Attached Files
    Last edited by NBVC; 04-13-2011 at 10:30 AM.

  5. #5
    Registered User
    Join Date
    04-12-2011
    Location
    romania
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sum & difference between multiple values in single cell

    @NBVC: IT WORKS! Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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