Closed Thread
Results 1 to 4 of 4

Thread: What Formula

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34

    Exclamation What Formula

    Im trying to create an efficient stock count worksheet


    I have a long list of productcodes running down column F with a quantity relating to the productcode in column G

    The same codes can appear frequently down column F but with a different quantity in column G everytime

    I need a function that searchs column F for a productcode(could appear 15 times) and returns the sum of all the quantities in column G that are related to the productcode i searched for

    I hope thats clear

    Any help would be greatly appreciated!!

    Phil
    Last edited by BodyHaven; 07-03-2008 at 12:48 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636
    Have a look at the SUMIF function in Excel help...

    e.g. =Sumif(A:A,"product_code",B:B) would sum all values in column B where column A contains "product_code"

    BTW: Please read our forum rules and update your title accordingly.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34
    Quote Originally Posted by NBVC
    Have a look at the SUMIF function in Excel help...

    e.g. =Sumif(A:A,"product_code",B:B) would sum all values in column B where column A contains "product_code"

    BTW: Please read our forum rules and update your title accordingly.
    This is actually the formula i have been using up till now

    The problem i am having is, i have to type the productcode into the criteria field of the equation. It wont return a correct value if i use a reference to the productcode (ie. =R4)

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777
    =SUMIF(A:A, R4, B:B)

    Please read the Forum Rules about thread titles, and then amend your thread title as NBVC requested.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0