excel - Subtract two cells based on multiple criteria
问题描述
I'm trying to calculate a daily count, given that I have current date, city, and total count.
For each row, I imagine [city's current total] - [the previous total for that city] = the daily count.
Not all cities exist in every date. The number of rows may vary between dates for each city.
I've tried INDEX and MATCH with VLOOKUP, but don't Excel functions well enough.
I'm familiar with arrays, but can't figure how to pluck the UBOUND and UBOUND-1 counts based on the date + city criteria. Ideas?
解决方案
推荐阅读
- ios - 在测试新生成的 SSL 和私钥时,是什么导致与 APNS 的连接立即关闭?
- docusignapi - Is it possible to search for envelopes created by a specific integration/app?
- mysql - 创建特定的外键
- airflow - 使用 Airflow 时,日级任务如何依赖小时级任务
- python - 用 Python 编写的实时更多代码翻译器
- jenkins - Jenkins 管道无法让 docker login 从 dockerhub 中提取公共图像
- python - 我正在尝试在我的 Spyder IDE 中安装 mrjob 模块,但我不知道如何安装
- c++ - 使用 C++ 从树莓派上的 I2C 库编译“示例”时出错
- angular - 有没有办法在 Ionic 上使用麦克风捕获 bpm?
- mysql - AdonisJs查询:如何在field2中选择每个月-年的sum(field1)