简体   繁体   中英

#VALUE Error when using AGGREGATE in a formula (EXCEL)

Like the title says I am getting a #value error when using the AGGREGATE function. I am using it in conjunction with INDEX to return matched rows based upon an entered value (Customer ID).

=INDEX(Equipment[Equipment ID],AGGREGATE(15,3,(Equipment[Customer ID]=$B$3)/(Equipment[Customer ID]=$B$3)*(ROW(Equipment[Customer ID])-ROW(Equipment[#Headers])),ROWS(Equipment!$B$2:B2)))

The INDEX portion of the formula is working just fine and returning the correct values. I have also used the same formula to create a section that looks up contacts (using the same formula) and that works perfectly.

Here is a view of some of the data: Partial Data from Equipment Table

Needed to force the data into value format by using the VALUE() function. Copying and pasting as values did not work. This fixed the error occurring with the AGGREGATE part of the formula.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM