简体   繁体   English

提取每月金额的 Excel 公式

[英]Excel Formula to Extract Monthly Amounts

I need to retrieve monthly spend from one worksheet to another based on a drop-down reference.我需要根据下拉参考将每月支出从一个工作表检索到另一个工作表。 This is how my data reference worksheet looks like this:这是我的数据参考工作表的样子:

**Account      Type           March     April**      
IT             Engineer      $16,992    $19,116     
PMO         Technical Mgr    $2,124     $3,324  
Finance        Engineer      $2,471     $2,471  
IT            QA             $4,455     $2,124  

In my summary worksheet, I have a column for with a drop-down for account and would like to retrieve monthly data based on account type.在我的摘要工作表中,我有一列带有帐户下拉列表的列,我想根据帐户类型检索每月数据。 If I select account type PMO, it would retrieve the monthly figures from the PMO entries in the data worksheet.如果我选择帐户类型 PMO,它将从数据工作表中的 PMO 条目中检索每月数字。

**Account     March     April**      
IT           $16,992    $19,116     
PMO          $2,124     $3,324 

I believe I need use a IF/Conditional formula but can't figure it out.我相信我需要使用 IF/Conditional 公式,但无法弄清楚。

Any ideas?有任何想法吗?

The vlookup function is what you need. vlookup功能正是您所需要的。

Here are descriptions of when and how to use vlookup .以下是关于何时以及如何使用vlookup

假设您的数据参考表从A1 on Sheet 1上的A1 on Sheet 1开始,而数据输出表从A1 on Sheet 2上的A1 on Sheet 2开始,请使用以下公式:

=SUMIFS(Sheet1!C:C,Sheet1!$A:$A,Sheet2!$A2)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM