+ Reply to Thread
Results 1 to 6 of 6

Deducting total from order total when matching Order#

  1. #1
    Registered User
    Join Date
    05-26-2020
    Location
    San Diego, CA
    MS-Off Ver
    2016
    Posts
    8

    Deducting total from order total when matching Order#

    I have two sheets in one workbook that my business uses to keep track of gold and silver product orders from our distributors and open customer orders.

    (Sheet #1) "Order Sheet" --- Where we log inventory orders. When a customer places an order that we don't have in stock, it goes onto (Sheet #2) "Special Order Sheet".

    Previously, the way we have been keeping track of what is remaining for an inventory order, is it to simply deduct out of it what is needed for any given number of customer orders. For example, if customer 1 on "Sheet #2" is buying 1 Gold eagle that we don't have in stock, we pull it out of Distributor 1 order on "Sheet #1". For hedging reasons (can explain if necesserary, but lets suffice it to say it's not pertinent to what I am asking), we split off the inventory in 9 Gold Eagles and add another line with the same Order # coming from the same 'Distributor 1' for 1 Gold Eagle. So, that way all 10 orders are on the "Order Sheet".

    I want to build a system that will allow for us to simply plug in the Invoice # into (Sheet #2 (Column V)), pulled from a data validation list that is compiled from Invoice #s on ((Sheet #1) Column Q) and is ignoring blanks (already accomplished), and have excel automatically deduct from the remaining amount readily available for our inventory in ((Sheet #1) Column R). So, I am trying to work out the formula to place into ((Sheet 1) Column R) to accomplish this.

    Hopefully this all makes sense. I've already worn my own brain out trying to explain it best I can. Thanks for any help.
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Deducting total from order total when matching Order#

    Shall I move this to the VBA section for you?

    You have a response in your other thread to which you have not replied.
    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
    05-26-2020
    Location
    San Diego, CA
    MS-Off Ver
    2016
    Posts
    8

    Re: Deducting total from order total when matching Order#

    If that is where it best fits. I think I just need formula help though...

    I just replied to the other that I figured it out thanks.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Deducting total from order total when matching Order#

    It may help someone better understand if you could manually place a few values into column R (Order Sheet) along with some explanation of the values. That way we also have something with which to compare the results of any proposed formulas/code.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    05-26-2020
    Location
    San Diego, CA
    MS-Off Ver
    2016
    Posts
    8

    Re: Deducting total from order total when matching Order#

    Thanks for looking into this....

    Column R is where I want the formula to be calculating what is remaining for that particular order. For instance, if we order 1000 silver rounds for our store (ie. Row 3 on the order sheet), and multiple customers come in and place separate orders each, totaling 920 (ie. rows 3,4,7,8, and 9), I want the cell in column R, on the order sheet to read as 80 remaining.
    I will put values in column R of the order sheet and column V of the Special order sheet to help picture how I see this working.... open to restructuring this whole system BTW....


    I will also condense the data on the sheets because they are unnecessarily long.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Deducting total from order total when matching Order#

    Please try pasting the following into cell R3 and then dragging the fill handle down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

+ 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. Display total order number and total order value per postcode
    By jonojohno20004 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2019, 07:05 PM
  2. Replies: 2
    Last Post: 12-24-2015, 03:00 PM
  3. [SOLVED] Sum of Order Total Based on Unique Order ID
    By ivdezine in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-31-2015, 08:10 AM
  4. Sum of Order Total Based on Unique Order ID
    By ivdezine in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-31-2015, 07:55 AM
  5. Sum of Order Total Based on Unique Order ID
    By ivdezine in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2015, 07:35 AM
  6. Sum total in last cell with same order#s
    By thadson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2015, 12:02 PM
  7. [SOLVED] Probably a SUM formula for order no. to get the total amount of order
    By Konnie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 04:29 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