EXCEL 資料位置範圍運算

Mini Ma 21 Reputation points
2021-05-05T05:44:35.45+00:00

想請問有一欄具波峰形式的數值(非規律0遞增到一個峰值後又非規律遞減到0,
我以IF函數以及MAX函數寫一個尋找某接近值的對應值,
會求出可能在遞增數列裡或是遞增數列裡的值,
所以我想在尋找的範圍值裡就先寫下只搜尋0到遞增數列的峰值這範圍,
所以想請問如核對資料位置範圍作函數取值,
謝謝
如範例圖93785-1620193221871.jpg93805-1620193236067.jpg

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Emily Hua-MSFT 27,876 Reputation points
    2021-05-05T13:27:07.433+00:00

    @Mini Ma

    Please note, currently Q&A forum support language is English, to better help other forum uses who encounter similar issue and read this thread, could you please translate your post in English? Thanks for your understanding.

    According to your description, I created a sample like yours.
    93889-image.png

    I used the following array formula =MAX((V1:V21=MAX(V1:V21))*ROW(V1:V21)) to get the row number of max value. The result of my sample is 11.

    Then I use the following array formula to get the value that matches the condition and from continuously growing data area. please do not forget to press Ctrl+Shift+Enter.
    =MAX(IF(V$1:INDIRECT("V$"&MAX((V1:V21=MAX(V1:V21))*ROW(V1:V21)))<35,V$1:INDIRECT("V$"&MAX((V1:V21=MAX(V1:V21))*ROW(V1:V21)))))
    93899-9.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.