+ Reply to Thread
Results 1 to 5 of 5

Subtract aggregate of row between columns of values in different rows

  1. #1
    Registered User
    Join Date
    04-22-2021
    Location
    Somewhere
    MS-Off Ver
    2016
    Posts
    5

    Subtract aggregate of row between columns of values in different rows

    I am trying to find a formula that subtracts the forecast from PO receipt to shrink date. The PO receipt value (blue) is received on 5/11 and I want to know how much of the forecast will be consumed from receipt (row 5) to shrink (row 8).
    Attached Files Attached Files

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,159

    Re: Subtract aggregate of row between columns of values in different rows

    Administrative Note:

    Welcome to the forum.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    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
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: Subtract aggregate of row between columns of values in different rows

    Try in F9:

    =(F8>0)*(LOOKUP(2,1/E$5:$F$5,E$5:$F$5)-SUMIFS($F$4:F$4,$F$1:F$1,">"&LOOKUP(2,1/E$5:$F$5,E$1:$F$1),$F$1:F$1,"<="&F$1))

    Drag accross
    Attached Files Attached Files
    Quang PT

  4. #4
    Registered User
    Join Date
    04-22-2021
    Location
    Somewhere
    MS-Off Ver
    2016
    Posts
    5

    Re: Subtract aggregate of row between columns of values in different rows

    This worked! Thank you so much.

  5. #5
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,159

    Re: Subtract aggregate of row between columns of values in different rows

    Please don't ignore the request in post #2.

+ 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] subtract values between two sheets after match three columns and update inventory
    By KalilMe in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 05-04-2021, 09:10 AM
  2. [SOLVED] Get unique values with Aggregate Index Match Formula ignoring hidden rows and columns
    By dummy777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2020, 02:22 AM
  3. [SOLVED] Aggregate Rows of Data if Condition is met (if 2 Columns contains dup values)
    By popcorn7 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 09-28-2018, 10:27 AM
  4. [SOLVED] Subtract two values from two different rows within a range
    By Renegade115 in forum Excel General
    Replies: 4
    Last Post: 09-06-2018, 02:18 PM
  5. [SOLVED] What function could help look at values in different columns & subtract based on values?
    By AccountingJ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2018, 04:18 PM
  6. [SOLVED] subtract values based on other columns
    By keywestsue in forum Excel General
    Replies: 3
    Last Post: 03-21-2017, 12:55 PM
  7. [SOLVED] Aggregate values in columns based on a cell identifier
    By bjarmeister in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-30-2015, 03:33 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