+ Reply to Thread
Results 1 to 13 of 13

calculate sum of the product from one of the column

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2009
    Location
    Heaven
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    69

    calculate sum of the product from one of the column

    Hi,

    I was trying to track my inventory and sale of the product. Please see the attached file.
    Please let me know if you have question to understand my question.

    ThanksBook1.xlsBook1.xls
    Last edited by top1; 09-07-2012 at 12:11 AM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: calculate sum of the product from one of the column

    try this one.

    Hamsample.xls
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    12-07-2009
    Location
    Heaven
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    69

    Re: calculate sum of the product from one of the column

    Thanks Vlady. What if I want to use generic word instead a specific one in the formula. Like Intead of writing Ham&Cheese, I can get the result just writing HAM.

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: calculate sum of the product from one of the column

    You can use wild cards for it

    INDEX(F:F,MATCH("*"&P14&"*",A:A,0))

    i put it before and after so that either of the word will be searched

    Ham or Cheese only

  5. #5
    Registered User
    Join Date
    12-07-2009
    Location
    Heaven
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    69

    Re: calculate sum of the product from one of the column

    Hi Vlady,

    I tried your suggestion but not work out. I put word Ham instead of HAM&Cheese, but not worked. Can you please help on this.

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: calculate sum of the product from one of the column

    here's the file

    Hamsample.xls

  7. #7
    Registered User
    Join Date
    12-07-2009
    Location
    Heaven
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    69

    Re: calculate sum of the product from one of the column

    Hi Vlady,

    Please if you can explain the last answer file. I am not getting any idea.

    Thanks

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: calculate sum of the product from one of the column

    =IFERROR(SUM(INDEX(C:C,MATCH("*"&P14&"*",A:A,0)),INDEX(F:F,MATCH("*"&P14&"*",A:A,0))),"Not found")

    P14 is the text to find say the word --> cheese

    notice the "*" between P14 so even you type cheese this will be search even there are "other words" between it and search it... notice the additional word below

    i.e ->> BurgerHam&cheesehotdog <-- this will be the returning value in the match because it has the word cheese in it..

    then INDEX(C:C <--get the quantity

    iferror( ..the formula here.....,"Not found") <--used for error checking if not available

  9. #9
    Registered User
    Join Date
    12-07-2009
    Location
    Heaven
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    69

    Re: calculate sum of the product from one of the column

    Hi Vlady,

    how can I get sum of QTY if I have like 7 QTY columns instead of just 2 QTY columns.

    thanks

  10. #10
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: calculate sum of the product from one of the column

    btw iferror work for higher xl

    this for xl2003
    =IF(ISERROR(MATCH("*"&P14&"*",A:A,0)),"not found",SUM(INDEX(C:C,MATCH("*"&P14&"*",A:A,0)),INDEX(F:F,MATCH("*"&P14&"*",A:A,0))))

    thanks icestationzbra.

    regards,
    vladimir

  11. #11
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: calculate sum of the product from one of the column

    See the attached
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    12-07-2009
    Location
    Heaven
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    69

    Re: calculate sum of the product from one of the column

    Thanks mama and Vlady.

  13. #13
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: calculate sum of the product from one of the column

    You're Welcome!

+ Reply to 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.6.0 RC 1