Forum Discussion

MJCalvin's avatar
MJCalvin
Copper Contributor
Oct 10, 2024
Solved

calculate sum based on the multiple selections from a reference table

I have a reference table, "Office" and like to get the total personnel based on the selection of offices in the "Allocations" table where I have the data validation configured to select multiple offices.

 

For example, if I selected "Austin" and "Tampa" in the cell of "Allocation" column, I will get the total personnel of 55 from the Office table. Please advise how to do this. Thanks in advance!!

 

Office# of Personnel
Austin15
Dallas21
Las Vegas16
Tampa40
San Jose28
Total120

 

AllocationsTotal Personnel
Austin, Dallas, Las Vegas52
Austin, Tampa55

3 Replies

    • MJCalvin's avatar
      MJCalvin
      Copper Contributor
      Lorenzo, Awesome that worked!!! Thank you for the quick solution!!!
      • Lorenzo's avatar
        Lorenzo
        Silver Contributor

        MJCalvin 

        You're welcome & thanks for providing feedback

        (next times don't forget to mention the version of Excel you run otherwise risk exists you get proposals that won't apply)

Resources