+ Reply to Thread
Results 1 to 6 of 6

Making a certain formula

  1. #1
    Registered User
    Join Date
    07-31-2007
    Posts
    4

    Making a certain formula

    At my work I use exel to separate rooms by who made them, and then have to add the room rates separated by who made them. So in one colum of the sheet are who made them (either marked by F, S, or C) and another colum for rate. So what I was looking for was a formula that would add up the room rates based opon if there was a F, S, or C in another colum. Is this possible? Thanks everyone, I know my discription is a little rough.

    ---Kenny

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi Kenny,

    The SUMPRODUCT function is the best solution. Here's an example of how it would sum the C entries if the F, S or C markers are in A1:A5 and the amounts to be summed are in the adjacent range (simply tweak as necessary):

    =SUMPRODUCT(--(A1:A5="C"),(B1:B5))

    HTH

    Robert

  3. #3
    Registered User
    Join Date
    07-31-2007
    Posts
    4
    Thanks that helped a lot, now how about if I need to include mulitiple colums? What I have is =SUMPRODUCT(--(B5:B26,H5:H26,N5,N26="F"),(D5:D26,J5:J26,P5:P26))
    and its saying #VALUE! Is there something wrong with the formula that you can see? Thanks again

    ---Kenny

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    I believe you would have to use 3 sumproduct formulas added together to get the answer you're looking for.

    For example:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-31-2007
    Posts
    4
    Thanks a ton, that worked great! However now when I try to make the same formula in a different cell using another simbol (S or C) it doesn't work. Will it not work if you are referring to the same cells as the other formula? Is there a way to get around that? Thanks

    ---Kenny

  6. #6
    Registered User
    Join Date
    07-31-2007
    Posts
    4
    Quote Originally Posted by DogStar5988
    Thanks a ton, that worked great! However now when I try to make the same formula in a different cell using another simbol (S or C) it doesn't work. Will it not work if you are referring to the same cells as the other formula? Is there a way to get around that? Thanks

    ---Kenny
    Oops nevermind I figured it out. Thanks a lot everyone, you just made me a hero at work :P.

    ---Kenny

+ 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