+ Reply to Thread
Results 1 to 2 of 2

Sumif that can count previous results and new results 1 at a time

  1. #1
    Registered User
    Join Date
    09-17-2021
    Location
    Ireland
    MS-Off Ver
    365
    Posts
    1

    Sumif that can count previous results and new results 1 at a time

    Hi All,

    This is my first time here posting. I have a problem getting a Sumif to function they way i want it to.

    Capture.JPG

    =SUMIF($A$2:A2,A2,$B$2:B2)

    I've attached a test sheet so you can see what i mean as im very poor at explaining.
    This seems to do what i want but skips the top result, im thinking its because it only has a single number and therefore nothing to do a sum on however it still spits out the result of 1 but doesnt add this single 1 to the next result...

    I have a stock report and a bill of material. I want to bounce my stock report off my bill of material and have the required serial numbers sum up to show me a total overall requirement at each instance, however i dont want to show me the entire result on each repeated line, i want it to tally up as it goes so that i can show available stock decrease as it goes along until it shows me negative numbers.
    E.g. Serial number 1234 shows up 3 times in the list of 1200 items, each item of 1234 requires me to pick 2pcs each time, i want the sumif to show me 2pcs on the first instance, then 4 on the next and 6 on the last. If i have 5pcs in stock i will be able to show that on the third instance i will have a -1 result and know i have a shortage.
    I have over 1200 serial numbers per bill of material and i only want to know what im short of and at what part of the bom i will see the shortage.

    I'm sure this is stupid easy but i just cant work out how to get this to function as needed...

    Thank you for your help

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Sumif that can count previous results and new results 1 at a time

    Please see the yellow banner at the top of the page.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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: 6
    Last Post: 02-25-2023, 06:05 PM
  2. [SOLVED] Delete previous results each time the macro is used.
    By (T_T) in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-01-2020, 07:12 AM
  3. extract previous results from rng
    By louis128 in forum Excel General
    Replies: 1
    Last Post: 08-31-2019, 10:51 AM
  4. [SOLVED] Index/match giving correct results, wrong results & #N/A results...sometimes
    By mrteater in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-27-2019, 10:41 AM
  5. limit filter results count or paste results in range
    By incobart in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-28-2017, 06:33 AM
  6. using results of a formula in a count if when the results are a date
    By moneypennie21 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-04-2015, 10:29 AM
  7. Replies: 3
    Last Post: 03-31-2010, 11:47 AM

Tags for this Thread

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