Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个摊销表。我想写一个公式来告诉我今天之前一个月的本金余额。例如,今天是 2013 年 10 月 16 日,我希望公式告诉我 2013 年 10 月 1 日的本金余额,并将其从我的摊销表中提取出来。
对于示例,假设您要操作的日期在 A1 中。
月初:=Date(Year(A1),Month(A1),1) 月底:=EOMonth(A1,0)
=Date(Year(A1),Month(A1),1)
=EOMonth(A1,0)
然后,您可以在查找中使用该日期: 例如,如果您的摊销表在 Sheet2 上,您的日期在 A 列中,而您的本金在 B 列中,您可以使用=VLOOKUP(Date(Year(A1),Month(A1),1),Sheet2!A:B,2,FALSE)在当月 1 日获取本金
=VLOOKUP(Date(Year(A1),Month(A1),1),Sheet2!A:B,2,FALSE)