如何在Google Sheets中根据付款条款自动调整到期日期(解决“收到即付”场景计算问题)
Solution for Auto-Calculating Due Dates in Google Sheets
Hey there, great job getting the NetX terms working already! To fix the "收到即付" (Pay Upon Receipt) scenario, we just need to add a simple conditional check to your formula. Here's the updated version you can drop into your first due date cell (e.g., D2):
=IF(C2="收到即付", B2, B2+RIGHT(C2,2))
Breakdown of how this works:
- Conditional Check: The
IFfunction first verifies if the payment term in cell C2 is exactly "收到即付". If that's true, it returns the original date from B2—since payment is due immediately when received. - NetX Term Handling: If the term isn't "收到即付", the formula uses your original logic: it grabs the rightmost 2 characters from the payment term (which gives the number of days to extend) and adds that to the original date in B2. This works for both "Net30" (no space) and "Net 15" (with space) formats perfectly.
Sample Output for Your Data:
Applying this formula to your table will give you these correct due dates:
| 日期 | 付款条款 | 到期日期 |
|---|---|---|
| 7/20/2020 | 收到即付 | 7/20/2020 |
| 6/29/2019 | Net30 | 7/29/2019 |
| 4/5/2020 | Net 15 | 4/20/2020 |
| 5/7/2020 | Net60 | 7/6/2020 |
| 6/8/2020 | Net40 | 7/18/2020 |
Just drag the formula down the column, and it’ll handle all your payment term scenarios automatically.
内容的提问来源于stack exchange,提问作者Karan Singh
相关产品推荐
相关产品推荐

