+ Reply to Thread
Results 1 to 3 of 3

Multiplying Two ranges in specific condition

Hybrid View

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Multiplying Two ranges in specific condition

    Good day

    I am trying to multiply two ranges in specific condition. I used the following formula and it was working in a perfect way

    {=SUMPRODUCT(IF($B$17:$B$505=" Apple ",Q17:Q505),$H$17:$H$505)}

    Now, I am trying to add more conditions using the following formula but unfortunately it was not working with me

    {=SUMPRODUCT(IF(AND($B$17:$B$505="Apple",$C$17:$C$505="Green"),Q17:Q505),$H$17:$H$505)}

    Do you have any suggestion? Could you help me please?

    Please note that I am using excel 2010.

    Best regards
    Last edited by AHB10; 12-12-2012 at 09:19 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Multiplying Two ranges in specific condition

    hi AHB10, welcome to the forum. either without the array:
    =SUMPRODUCT(($B$17:$B$22="apple")*($C$17:$C$22="green")*$H$17:$H$22*$Q$17:$Q$22)

    or if you want your IFS & array:
    =SUMPRODUCT(IF($B$17:$B$22="apple",IF($C$17:$C$22="green",$H$17:$H$22))*$Q$17:$Q$22)

    if it doesnt work, uploading a sample Excel file will enable us to help you better. to upload, press "Go Advanced" beside the "Post Quick Reply" button & click on the paperclip icon
    ideally, it should contain your desired results

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiplying Two ranges in specific condition

    Dear benishiryo,

    Thank you for your help and the prompt response. In fact, both of your formula works fine. I never though it would that easy.

    Thanks again for your Warm welcome

    Best regards

+ 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