[英]In Excel/VBA, how to apply a formula to a range based on cell value?
[英]How to apply formula to cell based on IF condition in Excel
我有一個如下所示的Excel Spreadsheed
A B
10.02.2007 10
10.03.2007 12
A列是日期,B列是股票價格
現在我的任務是使用公式計算股份的財務收益
return = ln(price_today / price_yesterday)
現在,在另一個電子表格中,我需要創建一個名為Return的新列。在此列中,我需要放置公式= ln(B2/B1)
但條件是該公式僅適用於A列中的日期,范圍為StartDate < currentDate < EndDate
。
所以我想
請建議
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.