You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何用Excel的MID、RIGHT和FIND函数提取组合州与邮编?

Solution to Extract State and Postcode

To combine the state (NSW) and postcode (2007) from Inventory!F4 into "NSW2007" using MID and FIND, use this formula:

=MID(Inventory!F4, FIND(",", Inventory!F4, FIND(",", Inventory!F4)+1)+2, 3) & MID(Inventory!F4, FIND(",", Inventory!F4)+2, 4)

Formula Breakdown:

  • Extract Postcode (2007):

    • FIND(",", Inventory!F4) locates the first comma in the cell content.
    • +2 skips the comma and following space to position at the start of the postcode.
    • MID(..., 4) grabs the next 4 characters to get "2007".
  • Extract State (NSW):

    • FIND(",", Inventory!F4, FIND(",", Inventory!F4)+1) finds the second comma (starting the search after the first comma).
    • +2 skips this comma and following space to position at the start of the state code.
    • MID(..., 3) grabs the next 3 characters to get "NSW".
  • Combine Results:

    • The & operator concatenates the extracted state and postcode into "NSW2007".

内容的提问来源于stack exchange,提问作者Alan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 10:20:43