+ Reply to Thread
Results 1 to 4 of 4

Sum cells based on contents of cell directly above

  1. #1
    Registered User
    Join Date
    12-09-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Sum cells based on contents of cell directly above

    Is it possible to sum cells that have specific criteria met in the cell above them?
    In the attached document, is there a formula or macro that will go through the whole array (A1:I12) and sum the cells just below all cells that =Material (it can only be material, not material/ft or anything like that)
    I think the basic SUMIF would work if the values were in the adjacent column, not row. Do I need to pivot this array first?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,159

    Re: Sum cells based on contents of cell directly above

    Hi & welcome to the board.
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-09-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Re: Sum cells based on contents of cell directly above

    Awesome! It didn't occur to me that moving the range 1 row would, you know, move the range 1 row.

    Thank you

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,159

    Re: Sum cells based on contents of cell directly above

    Glad to help & thanks for the feedback.

+ 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. Formatting Cells Based on Cell Contents
    By spyldbrat in forum Excel General
    Replies: 7
    Last Post: 12-19-2018, 10:10 AM
  2. [SOLVED] Adjust cell contents based on another cells contents
    By spyac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2018, 10:34 AM
  3. [SOLVED] How to get cell contents based on other cells.
    By msche09 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-11-2014, 09:40 AM
  4. doing web search directly from cell contents
    By partgypsy in forum Excel General
    Replies: 0
    Last Post: 11-16-2013, 07:42 PM
  5. get contents of the cell directly to the left a the button
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-14-2010, 06:23 PM
  6. Expanding a Cell based on another cells contents
    By JimmyA in forum Excel General
    Replies: 2
    Last Post: 12-19-2008, 11:32 AM
  7. [SOLVED] Updating a cell based on contents of two other cells
    By jonco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-04-2006, 07:50 AM

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