【问题标题】:Bring back 10 lowest values based on a conditionBring back 10 lowest values based on a condition
【发布时间】:2022-12-02 09:20:21
【问题描述】:

I have a table measuring the distance and time via public transport between two postcodes. The postcodes are down column A and also are written in row 1:1 (photo below to explain)

I want to write a formula that says

Match Area name - ie 'Holborn' in the horizontal row, search down column matching 'distance' and return 10 smallest values telling me the distance BUT also bring back the matching store (from column A).

Help very much appreciated.enter image description here

I was trying to achieve it with a filter, sort and limit but I'm not getting anywhere.

【问题讨论】:

  • Welcome to Stack Overflow. Please edit your question and insert a table of sample data together with a table that shows your manually entered desired results. Also consider sharing a publicly editable sample spreadsheet. There is a blank sheet maker that lets you share safely.
  • share a copy / sample of your sheet with an example of the desired output

标签: google-sheets filter


【解决方案1】:

try:

={A2:A, FILTER(B2:Z, B1:Z1="Holborn")}

【讨论】:

    猜你喜欢
    • 2022-12-27
    • 2022-12-28
    • 2022-12-02
    • 2022-12-01
    • 2022-12-01
    • 2022-12-28
    • 2022-12-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多