Investigating the interactions between workers belonging to different departments is essential to propose efficient and comfortable office layouts. In this study, we developed a method for improving the accuracy of the behavior monitoring data taken from BLE beacon equipped in an office building. Next, we developed a quantitative index for evaluating office layouts, which takes detailed workers' activities such as interdepartmental movements and communications into account. In addition, we developed a method to generate office layouts by optimizing the index value, and made comparative analysis using optimized layout and the actual layout.