+ Reply to Thread
Results 1 to 9 of 9

Simplifing multiple formulas to one formula.

  1. #1
    Registered User
    Join Date
    02-15-2025
    Location
    Moldova
    MS-Off Ver
    2024 Pro Plus
    Posts
    4

    Simplifing multiple formulas to one formula.

    Hi!
    I want please help. I provide an image as example (in attachments)

    The C1 is the difference from B1 and A1 (=B1-A1), but if both B1 and A1 are numbers (>0), B1 > A1. In other cases the result is 0. I put a formula in C1 myself:

    Please Login or Register  to view this content.
    and for all cells of C, of course, till the end of the table.

    In the end i put formula to sum all the values:

    Please Login or Register  to view this content.
    But is a way to put only one formula in C7 to sum all the values of the differences from B and A please? I have a big table and i have different rows and columns. It take a big time to put the formulas in all the cells. My whole table is in the same syntax as is in example: a row with numbers, the next is with text and after again numbers and so on.


    Please help.
    Attached Files Attached Files
    Last edited by Loveness; 02-15-2025 at 10:53 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,879

    Re: Simplifing multiple formulas to one formula.

    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. 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.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,879

    Re: Simplifing multiple formulas to one formula.

    This?

    =SUM(IF(B1:B6>A1:A6,B1:B6-A1:A6,0))

  4. #4
    Registered User
    Join Date
    02-15-2025
    Location
    Moldova
    MS-Off Ver
    2024 Pro Plus
    Posts
    4

    Re: Simplifing multiple formulas to one formula.

    Thank you very much.
    Last edited by AliGW; 02-15-2025 at 09:41 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead. Please review the forum guidelines.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,879

    Re: Simplifing multiple formulas to one formula.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) 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 each of those who offered help.

  6. #6
    Registered User
    Join Date
    02-15-2025
    Location
    Moldova
    MS-Off Ver
    2024 Pro Plus
    Posts
    4

    Re: Simplifing multiple formulas to one formula.

    But i have a problem.. in such a case the formula gives error (#VALUE) i just add some letters to "text" and bad
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,879

    Re: Simplifing multiple formulas to one formula.

    Try this:

    =SUM(IFERROR(IF(B1:B6>A1:A6,B1:B6-A1:A6,0),0))

    And then please mark the thread as solved as described above. Thanks.

  8. #8
    Registered User
    Join Date
    02-15-2025
    Location
    Moldova
    MS-Off Ver
    2024 Pro Plus
    Posts
    4

    Re: Simplifing multiple formulas to one formula.

    Thank you very much!
    Last edited by AliGW; 02-15-2025 at 11:13 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead. Please review the forum guidelines.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,879

    Re: Simplifing multiple formulas to one formula.

    You're welcome.

+ 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. Formula help. Trying to combine multiple formulas into one.
    By Skymarshal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-13-2023, 10:22 PM
  2. [SOLVED] Simplifing a cell comparison check
    By timmtamm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-02-2015, 07:01 PM
  3. Simplifing Select Case
    By radar_jynx in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-09-2009, 03:30 PM
  4. multiple if formulas plus sum formula
    By mikekdavid in forum Excel General
    Replies: 4
    Last Post: 03-12-2009, 11:15 AM
  5. Help simplifing and existing spreadsheet
    By zugfrig1978 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2008, 08:31 PM
  6. Simplifing a SUMPRODUCT Formula
    By jat82nd in forum Excel General
    Replies: 2
    Last Post: 04-21-2008, 03:00 PM
  7. [SOLVED] Help Simplifing Code
    By Joel Mills in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2005, 04:06 PM

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