+ Reply to Thread
Results 1 to 5 of 5

Sumifs Formula Maybe

  1. #1
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Sumifs Formula Maybe

    Hello!

    The first tab "Dates" is how I want the formula to work if I were to be able to build one. It would look at the second tab "Data". If Trade Type = B then it would add to the previous quantity. If Trade Type = S it would subtract from previous quantity. Also, the quantity would continue to remain the same until the next Trade Date. I'm sure the formula would need to look at all those including Security, and Dates.
    Any help building this complex formula would be great
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Sumifs Formula Maybe

    Try in "Data" sheet "D2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Sumifs Formula Maybe

    The Dates tab is how the data will be presented. Thing of if line 2 from B to U was blank. How would I be able to fill in using the Data tab

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Sumifs Formula Maybe

    Try

    in B2 of "Dates"

    =SUMPRODUCT((Data!$D$2:$D$13)*((Data!$C$2:$C$13="B")-(Data!$C$2:$C$13="S"))*(Data!$B$2:$B$13<=Dates!B$1))

    Copy across

  5. #5
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Sumifs Formula Maybe

    Thank you, that worked

+ 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. Replies: 3
    Last Post: 01-24-2017, 08:08 AM
  2. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  3. [SOLVED] Sumifs formula giving #value even though each part individually works as a sum formula
    By carrach in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2015, 10:34 AM
  4. Replies: 2
    Last Post: 05-22-2014, 04:14 AM
  5. [SOLVED] Either/Or within a SUMIFS formula (part of a weighted average formula)
    By macrorookie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 09:56 PM
  6. SUMIFS Puzzle - Trying to avoid adding multiple SUMIFS to get valid result
    By haldavid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 03:42 PM
  7. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 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