简体   繁体   English

如何在Excel中显示基于特定日期的单元格值

[英]How to show a cell value based on a specific date in excel

I'm fairly new to Excel, and I'm currently trying to build a workbook for personal finance. 我对Excel还是很陌生,并且目前正在尝试为个人理财建立工作簿。 I have a breakdown of a specific account entered into excel so I can see the estimated/projected balance of the account on any given date. 我有一个输入到excel的特定帐户的明细,因此我可以查看在任何给定日期的帐户的估计/预计余额。

Here is an example of how the data is entered in Sheet1 这是一个如何在Sheet1中输入数据的示例
在此处输入图片说明

A1 01/01/18 - B1 $1

A2 02/01/18 - B2 $2

A3 03/01/18 - B3 $3

A4 04/01/18 - B4 $4

A5 05/01/18 - B5 $5

I'm trying to make a separate sheet (sheet2) in the workbook where I can manually type a date into a specific cell (A1 below), and the account balance will populate in another cell on this sheet (A2 below) based on the information in Sheet1. 我正在尝试在工作簿中制作一个单独的工作表(sheet2),可以在其中手动将日期键入到特定的单元格(下面的A1)中,并且帐户余额将基于该工作表的另一个单元格(下面的A2)中填充Sheet1中的信息。

For example: 例如:
在此处输入图片说明

A1 4/1/18 - B1 $4 A1 18年4月1日-B1 4美元

I have been puzzling over this for weeks, and nothing I've tried has worked. 数周来我一直对此感到困惑,但我尝试过的任何方法都没有奏效。 I'd love any advice you can offer! 我希望您能提供任何建议!

Thanks, CSR 谢谢,企业社会责任

The following both formula will do that. 以下两个公式都可以做到这一点。 Put formula in Sheet2 -- B1 Cell. 将公式放在Sheet2 -- B1单元格中。

=VLOOKUP(A2,Sheet1!$A$1:$B$9,2,FALSE)

=INDEX(Sheet1!$A$1:$B$9,MATCH(A2,Sheet1!$A$1:$A$9,0),2)

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

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