+ Reply to Thread
Results 1 to 11 of 11

Multi option sum

  1. #1
    Registered User
    Join Date
    01-08-2010
    Location
    Lahore, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    4

    Multi option sum

    Dear Friends,

    I want to sum data in COLUMN C that is related to COLUMN B if the COLUMN F is blank.

    Thanks in advance

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Re: Multi option sum

    Search for sumproduct, this function will do what you need.

  3. #3
    Registered User
    Join Date
    01-08-2010
    Location
    Lahore, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multi option sum

    Quote Originally Posted by davesexcel View Post
    Search for sumproduct, this function will do what you need.
    I have tried SUMPRODUCT but unable to execute it properly can u give example according to the attached sheet.
    Attached Files Attached Files
    Last edited by shanakhtar; 01-08-2010 at 08:41 AM.

  4. #4
    Registered User
    Join Date
    01-08-2010
    Location
    Lahore, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multi option sum

    anyone there?

  5. #5
    Forum Contributor
    Join Date
    10-04-2004
    MS-Off Ver
    2013
    Posts
    148

    Re: Multi option sum

    You can also try using a Pivot Table to sum up the invoices and display the information as you want (name of firma, value, ...)

  6. #6
    Registered User
    Join Date
    01-08-2010
    Location
    Lahore, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multi option sum

    pmguerra

    ANY EXAMPLE???

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Re: Multi option sum

    =SUMPRODUCT(($B$4:$B$31=B36)*($D$4:$D$31="---")*($C$4:$C$31))

    Placed in C36 then dragged down.

  8. #8
    Forum Contributor
    Join Date
    10-04-2004
    MS-Off Ver
    2013
    Posts
    148

    Re: Multi option sum

    What is the difference between "blank" and "---" ?

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Re: Multi option sum

    Quote Originally Posted by pmguerra View Post
    What is the difference between "blank" and "---" ?
    You wouldn't ask that if you looked at the workbook.

  10. #10
    Forum Contributor
    Join Date
    10-04-2004
    MS-Off Ver
    2013
    Posts
    148

    Re: Multi option sum

    Quote Originally Posted by davesexcel View Post
    You wouldn't ask that if you looked at the workbook.
    I did the look at the workbook hence the question... Besides you had already come up with a solution when I was typing my reply.

    Anyway, you replied 4 times in this thread. 2 out of 4 were (let me put it nicely) not useful replies. I don't think that's the role of a Forum Moderator but that's just me.

    I was going to ask you about the SUMPRODUCT function you used because I didn't really understand how it works but I'm sure you have other threads to answer in such a "smart" and cunning way...

    Take care!

  11. #11
    Registered User
    Join Date
    05-21-2006
    Location
    Cochrane
    MS-Off Ver
    365
    Posts
    59

    Re: Multi option sum

    ...I did the look at the workbook hence the question...
    Looking at the workbook supplied, it appears the cells that were considered blank, were not blank, they had the text "---".
    As this is the case, did you really look at the workbook as closely as you say you did?
    Paul

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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