+ Reply to Thread
Results 1 to 17 of 17

Formula that calculates the difference between numbers

  1. #1
    Registered User
    Join Date
    11-26-2023
    Location
    CZ
    MS-Off Ver
    Google Sheets
    Posts
    12

    Thumbs up Formula that calculates the difference between numbers

    Hi Hi,

    I'm trying to create a formula that would be able to calculate the difference between the numbers and writes it exactly as shown in this image:

    https://postimg.cc/RWGhy3Q8
    https://docs.google.com/spreadsheets...dgQ/edit#gid=0

    I have been trying to solve this problem for several days, thanks for any help

    I sew home-made large stuffed animals and I need it to evenly sew some parts.

    thanks :-)
    Last edited by AliGW; 11-27-2023 at 04:29 AM. Reason: URLs fixed.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 VersionVersion 2411 Win 11
    Posts
    24,418

    Re: Formula that calculates the difference between numbers

    Unsure of your ask. Are your attempting to get the difference between 25 and 3? If not then please explain in more detail what you are attempting.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-26-2023
    Location
    CZ
    MS-Off Ver
    Google Sheets
    Posts
    12

    Re: Formula that calculates the difference between numbers

    Thanks for your reaction,

    you have to look at the links, unfortunately for some reason, I am not authorized as a new member to post links.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,138

    Re: Formula that calculates the difference between numbers

    If I am understanding your pictures correctly, you want a formula (must it be a single cell formula?) that will:
    1) Start with the first number. (=B3)
    2) Calculate the difference between the successive pairs of numbers (=C3-B3 copied across).
    3) Join the results of step 1 and 2 in a hyphen delimited text string? =TEXTJOIN("-",FALSE,range containing values)

    Did I understand correctly?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    11-26-2023
    Location
    CZ
    MS-Off Ver
    Google Sheets
    Posts
    12

    Re: Formula that calculates the difference between numbers

    Oooo, you understand it correctly :-)


    I've been dealing with it for about 4 days, my knowledge is not enough .-D

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,138

    Re: Formula that calculates the difference between numbers

    If you aren't required to do it all in a single cell:

    1) In B6 =B4-A4. Copy/paste/fill into C6:K6
    2) In L6 =TEXTJOIN("-",TRUE,B6:K6).
    3) Copy B6 and paste into B11, B16, etc.

  7. #7
    Registered User
    Join Date
    11-26-2023
    Location
    CZ
    MS-Off Ver
    Google Sheets
    Posts
    12

    Re: Formula that calculates the difference between numbers

    That's the problem, I have other calculations that I need to derive from this calculation in one cell,

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,138

    Re: Formula that calculates the difference between numbers

    I don't understand. How does this hyphen delimited text string fit into the downstream calculations? In what way does the downstream calculation know that the text string was generated over several cells, and how does that impact the downstream calculation? What is the nature of the downstream calculation?

  9. #9
    Registered User
    Join Date
    11-26-2023
    Location
    CZ
    MS-Off Ver
    Google Sheets
    Posts
    12

    Re: Formula that calculates the difference between numbers

    I have other custom formulas that are set to find the position of numbers or the same numbers and work with these numbers .etc

  10. #10
    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. 2412 (Windows 11 24H2 64-bit)
    Posts
    88,706

    Re: Formula that calculates the difference between numbers

    Provide a link to the Google Sheet, not umages.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  11. #11
    Registered User
    Join Date
    11-26-2023
    Location
    CZ
    MS-Off Ver
    Google Sheets
    Posts
    12

    Re: Formula that calculates the difference between numbers

    the second link is directly to google sheets

  12. #12
    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. 2412 (Windows 11 24H2 64-bit)
    Posts
    88,706

    Re: Formula that calculates the difference between numbers

    OK - I have amended your opening post to make that more obvious. I've also moved the thread to the correct forum section.

  13. #13
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,501

    Re: Formula that calculates the difference between numbers

    B5
    Please Login or Register  to view this content.
    copy to other cells.

  14. #14
    Registered User
    Join Date
    11-26-2023
    Location
    CZ
    MS-Off Ver
    Google Sheets
    Posts
    12

    Re: Formula that calculates the difference between numbers

    Thank you very much, really very much, and I'm sorry for not writing earlier.
    I was in the hospital, I had an accident that was not my fault.


    Your funstions works perfectly, that's exactly what I needed
    Last edited by Ellie11; 12-22-2023 at 04:40 PM.

  15. #15
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Formula that calculates the difference between numbers

    Another option:

    Please try in B5 and copy to the other cells:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by HansDouwe; 12-22-2023 at 04:55 PM.

  16. #16
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 VersionVersion 2411 Win 11
    Posts
    24,418

    Re: Formula that calculates the difference between numbers

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  17. #17
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,501

    Re: Formula that calculates the difference between numbers

    You are welcome.
    Get well soon.

+ 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] Formula that return the difference in a set of numbers closest to it
    By lar9149 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2021, 12:13 PM
  2. Replies: 31
    Last Post: 07-28-2017, 01:48 PM
  3. [SOLVED] Formula for difference between numbers
    By Lynngirl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2017, 12:30 PM
  4. Formula for the difference between positive & negative numbers
    By buyshirts in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2016, 07:11 AM
  5. [SOLVED] Formula to calculate difference between 2 numbers
    By sats43 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2014, 04:53 AM
  6. [SOLVED] Macro only calculates on whole numbers!! im sure this is a rookie mistake.
    By alsyourpal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2013, 02:31 AM
  7. Replies: 0
    Last Post: 11-28-2007, 07:03 AM

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