+ Reply to Thread
Results 1 to 4 of 4

Sum of cells by logic in a row

  1. #1
    Registered User
    Join Date
    12-11-2020
    Location
    USA
    MS-Off Ver
    Professional
    Posts
    18

    Question Sum of cells by logic in a row

    SUM of cells before the code ABC & has BAT in the cell before (details in the spreadsheet)
    Attached Files Attached Files
    Last edited by chintakk; 12-16-2020 at 10:57 AM.

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

    Re: Sum of cells by logic in a row

    This:

    =SUMPRODUCT(--(E8:U8="ABC")*(LEFT(C8:S8,3)="BAT"),D8:T8)

    Try to work the next one out for yourself, please, and ask if you have trouble. You have enough clues in the solutions you’ve been given to make some of your own progress now.
    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
    Registered User
    Join Date
    12-11-2020
    Location
    USA
    MS-Off Ver
    Professional
    Posts
    18

    Re: Sum of cells by logic in a row

    Thank you, it worked well.

  4. #4
    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,830

    Re: Sum of cells by logic in a row

    Please update your profile with the version of Excel Professional that you are using.

    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.

+ 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] Sum of selective cells by logic in a row
    By chintakk in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-15-2020, 06:38 PM
  2. Search Surrounding Cells and Use Logic Table to Highlight cells
    By Hekagigantes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2014, 08:36 AM
  3. Calculate cells if other cell contains a value - Need help with the logic.
    By audioboxer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-15-2013, 04:21 PM
  4. Deleting Cells Using Logic Statements??
    By smithb1020 in forum Excel General
    Replies: 2
    Last Post: 06-16-2009, 11:03 AM
  5. IF Statement: Logic Between Adjacent Cells
    By fateshand in forum Excel General
    Replies: 9
    Last Post: 05-29-2009, 11:33 PM
  6. Logic with multiple cells, selecting between the two
    By Iscariot in forum Excel General
    Replies: 4
    Last Post: 01-19-2009, 07:41 AM
  7. Average of logic cells
    By ckdkvk in forum Excel General
    Replies: 2
    Last Post: 12-01-2005, 09:20 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