简体   繁体   English

EXCEL-根据过期日期检索列中特定单元格的值

[英]EXCEL - retrieve value of specific cell in column based off of date

My question is as follows: 我的问题如下:

I have an excel workbook with two worksheets. 我有一个带有两个工作表的excel工作簿。 The first worksheet has my bills listed in rows, and paydates in columns. 第一个工作表在行中列出了我的帐单,在列中列出了付款日期。 The second worksheet has a weekly cashflow plan with spots corresponding to various bills in the first. 第二个工作表有一个每周现金流量计划,在第一个工作表中有对应于各种账单的点。

I would like the cash flow worksheet to update the cell to the dollar value of the bill if its due. 我希望现金流工作表将单元格更新为账单的美元价值(如果到期)。 I have attached a link to my box with the excel file. 我已经将带有Excel文件的链接附加到我的盒子中。 Screen shots are below as well. 屏幕截图也位于下方。 In the screenshot examples, for instance, i would like the Electricity Cell in Cash flow sheet to Show $238 since the Electricity in the Bills sheet for the current week has an X in that location. 例如,在屏幕截图示例中,我希望“现金流”中的“电量”表显示$ 238,因为当前周“票据”表中的“电量”在该位置为X。

Excel Workbook Excel工作簿

Any help that can be provided would be greatly appreciated. 可以提供的任何帮助将不胜感激。

帐单 现金流量表

If I understand what you want to accomplish correctly, your dates on the first worksheet (E3, F3, etc) need to be changed to Thursday dates - they are Wed dates right now.Also, you need the descriptions in column B of the first sheet to exactly match the descriptions in column A of the second sheet. 如果我了解您要正确完成的工作,则需要将第一个工作表上的日期(E3,F3等)更改为星期四日期-现在是星期三。此外,您还需要第一个工作表B列中的说明表以完全匹配第二页的A列中的描述。 This is why accountants like to use account numbers instead of account descriptions when possible. 这就是为什么会计师尽可能使用帐号而不是帐号说明的原因。 If you change those here are your formulas: 如果更改这些,则公式如下:

Second sheet cell A2 - =IF(WEEKDAY(A3)<=5,A3+5-WEEKDAY(A3),A3-WEEKDAY(A3)+7+5). 第二个工作表单元格A2-= IF(WEEKDAY(A3)<= 5,A3 + 5-WEEKDAY(A3),A3-WEEKDAY(A3)+ 7 + 5)。 This checks the day of week of the current date then adds days as needed. 这将检查当前日期的星期几,然后根据需要添加天数。 It seems like there might be an easier way to get this. 似乎可能有一种更简单的方法来实现这一目标。

Second sheet cells B6, B7, B8, B10 ,etc = =IF(HLOOKUP(A10,$F$4:$J$8,MATCH(A12,$D$5:$D$8,0)+1,FALSE)="x",VLOOKUP(A12,$D$5:$E$8,2,FALSE),""), The hlookup determines if there is an "x" in the current week and the vlookup pulls the amount from the correct line. 第二个工作表单元格B6,B7,B8,B10等== IF(HLOOKUP(A10,$ F $ 4:$ J $ 8,MATCH(A12,$ D $ 5:$ D $ 8,0)+ 1,FALSE)=“ x “,VLOOKUP(A12,$ D $ 5:$ E $ 8,2,FALSE),”“),hlookup确定当前周是否存在“ x”,并且vlookup从正确的行中提取金额。

在此处输入图片说明

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

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