+ Reply to Thread
Results 1 to 2 of 2

Sumif with multiple 'or' options with cell references

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Sumif with multiple 'or' options with cell references

    I have created a resource workbook. I need to report on weekly charging information for 2 groups of employees; one group comprises Consultants and Solution Architects. I therefore wish to sum the effort allocated for each day based on their role description. I have done some research and tried the following formula:

    =sum(sumifs(AC5:AC85,B5:B85,{"Consultant","Solution Architect"}))

    where AC:AC85 is the daily effort forecast and B5:B85 are the role descriptions for the various employees. Unfortunately, Excel didn't accept the formula and just tells me I have made an error.

    What am I doing wrong in the formula?

    Can I put in cell references instead of character strings for the role descriptions?

    When I want to add a the project name condition, do I put in a comma after } and state cell range for the project names, and the project reference?

    I would really appreciate some help with this.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,604

    Re: Sumif with multiple 'or' options with cell references

    Try it this way:

    =sumif(B5:B85,"Consultant",AC5:AC85)+sumif(B5:B85,"Solution Architect",AC5:AC85)

    and if you want to put those words in cells (eg X1,X2), then you can do this:

    =sumif(B5:B85,X1,AC5:AC85)+sumif(B5:B85,X2,AC5:AC85)

    Hope this helps.

    Pete

+ 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