+ Reply to Thread
Results 1 to 16 of 16

Formula for retuning a value of 4 critera

  1. #1
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Formula for retuning a value of 4 critera

    Hi there, newbie so please be gentle!

    I have a sheet which is a report of daily sales accross a range of products with sales value and salesperson amongst other information.

    In simple terms, this is what I am trying to do:

    Column A is a nine digit product part number.
    Column B is a five character salesman code
    Column C is the value of said product in column A
    Column D is the qty sold of said product in A

    Is there a formula I can use, to show the total value of a specific product part number sold by a particluar salesman?

    Thanks

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for retuning a value of 4 critera

    Try

    =SUMPRODUCT(--(A$1:A$100=F2),--(B$1:B$100=G2),C$1:C$100,D$1:D$100)

    F2 = Part number in question
    G2 = salesman in question

  3. #3
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    excel.jpg

    thanks for your response, but it doesnt appear to solve it??

    Picture attached to show issue

    Regards
    Last edited by reddaze; 02-14-2014 at 11:36 AM. Reason: spelling

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for retuning a value of 4 critera

    Put quotes around Bobby...

    "Bobby"

  5. #5
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    Brilliant thank you.

    1 more thing, if I want that result to appear on sheet 2, (with the data on sheet 1) how do I modify the formula to look at sheet 1.

    =SUMPRODUCT(--(Sheet1!A$2:A$100=111222333),--(sheet!B$2:B$100="BOBBY"),Sheet1!C$2:C$100,sheet!D$2:D$100)

    doesn't appear to do the job??

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for retuning a value of 4 critera

    You've misspelled a couple of the sheet names, look closely.
    2 of them are Sheet1, the other 2 are just Sheet

  7. #7
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    working perfect now thanks - just 1 more question - if I didnt want to include the qty side of it, how do i go about that?

    thanks

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for retuning a value of 4 critera

    You're welcome.

    To not include the qty part, just remove the qty range (column D)
    =SUMPRODUCT(--(A$1:A$100=F2),--(B$1:B$100=G2),C$1:C$100)

  9. #9
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    doh! Didnt realise it really was 'that' simple

    Thank you again

  10. #10
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    Just one more thing with this one, how can I use the same formula but to show qtys of part numbers sold starting with 111 for each salesman? Is this possible? Thanks in advance

  11. #11
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    Hi again,

    Going back to my OP;

    Column A is a nine digit product part number.
    Column B is a five character salesman code
    Column C is the value of said product in column A
    Column D is the qty sold of said product in A

    Using this data above, how I can I return back the total value of a product by salesman where the product code ends in a specific number only?

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Formula for retuning a value of 4 critera

    Something like this.....

    To get the total value for a particular salesman (bobby in this case) for product code starting with 111, try this.....
    Please Login or Register  to view this content.
    To get the total value for a particular salesman (bobby in this case) for product code ending with 333, try this.....
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  13. #13
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    Wow thanks!

    Also, getting complicated now though, how about a formula to show the total sum of the product sold where the first three digits and the last digit are odf a certain criteria?

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula for retuning a value of 4 critera

    Then i give you another advice.

    Look at the oppotunity of a pivot table.

    Your structure of data is perfect for working with an pivot table.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  15. #15
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    Yes I think that would be easier, but....

    the actual data used is updated daily and will be used at various sites.

    Other sites do not have the ability to use pivot tables.

    Do you have another method??

    thank you

  16. #16
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula for retuning a value of 4 critera

    Please Login or Register  to view this content.
    I don't understand that one.

    Maybe you can make an table of your data.

    If you add new data in the next empty row below the table, the table will automatic expand.

    In that case you only have to refresh the pivottable.

  17. #17
    Registered User
    Join Date
    02-14-2014
    Location
    Halesowen, England
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Formula for retuning a value of 4 critera

    this spreadsheet will be sent to other sites to uses. the people at these sites, are not very good at using excel. This is why I need a simple spreadheet with just formulas.

    thank you

+ 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. #Value - in a formula retuning a string
    By 4mal in forum Excel General
    Replies: 4
    Last Post: 11-02-2011, 06:30 PM
  2. Retuning a column number for a specific value
    By slot guy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2005, 06:05 PM
  3. [SOLVED] how do i copy rows using critera in a formula?
    By tim_302ford in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  4. [SOLVED] how do i copy rows using critera in a formula?
    By tim_302ford in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  5. [SOLVED] how do i copy rows using critera in a formula?
    By Adrian M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06: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