+ Reply to Thread
Results 1 to 4 of 4

Calculating total depending on kind of transaction

  1. #1
    Registered User
    Join Date
    03-17-2021
    Location
    Poole, England
    MS-Off Ver
    Excel for Microsoft 365 (16)
    Posts
    6

    Calculating total depending on kind of transaction

    Hi all, I am looking for some help with calculating the totals depending on kind of transaction. In attached example: Col B is setting the kind of transaction, Col C is change quantity and Col D is what I am trying to work out. Whenever transaction is BOM Issue, Out - POP or Out - Write off, I need the formula to subtract the value shown in Col C from Col D but when transaction is In - POP, In - Unknown source or In - Internal return, I need the formula to add value from Col C to Col D. Other transaction do not matter in this formula and need to be ignored. Can you help please?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Calculating total depending on kind of transaction

    Try this in E2 and copy down

    Please Login or Register  to view this content.
    You cant place this in D2 because it would cause a circular reference and return 0 or nothing at all.

    I have also attached your sample file with it in the column applied down..
    Attached Files Attached Files
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

  3. #3
    Registered User
    Join Date
    03-17-2021
    Location
    Poole, England
    MS-Off Ver
    Excel for Microsoft 365 (16)
    Posts
    6

    Re: Calculating total depending on kind of transaction

    Hi cubangt, thanks for this. My aim is to calculate the results shown as example in column D. Raw data I get is column A,B and C so need a formula to calculate the qty at time of the transaction so effectively it will always start from 0 and then calculations will affect it as listed. Do you think it can be done?

  4. #4
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Calculating total depending on kind of transaction

    Not sure it can be done with a formula, because you are asking the condition to add or subtract a value that isnt there.. and by placing the formula in the column D, as soon as you enter a qty, it will overwrite the formula and be a static value.
    What may do the job is instead of a formula within the cell, apply the formulation logic in the backend VBA so that it can take the values in C & D and do the math accordingly and update the value in D with the results.

+ 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. Tiered Commission Structure Depending on Type of Transaction
    By QuentinL in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2020, 04:00 AM
  2. Formula to change percentage charged depending on transaction amount
    By ManuelP in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2017, 06:07 AM
  3. [SOLVED] calculating term of financial transaction
    By Fred Smith in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 04:05 AM
  4. calculating term of financial transaction
    By bookman3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. [SOLVED] calculating term of financial transaction
    By bookman3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  6. calculating term of financial transaction
    By bookman3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. calculating term of financial transaction
    By bookman3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2005, 01:05 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