简体   繁体   中英

Getting the value of a cell from its relative position

I've recently been asked to create a spreadsheet for work that will return the lowest bid price from any of our suppliers. I got the basic spreadsheet from management and they want me to get it working. It looks like this

电子表格示例

I've found the minimum value from the four pricing columns easily enough, but I need to get the vendor id and the deal number and display them on the right side as well, as this spreadsheet could have tens of thousands of entries.

Does anyone know of any method I could use to get the Vendor ID and Deal Number values from their relative position to the smallest price value?

This will give you the lowest price vendor.

=INDEX(B2:Q2,MATCH(R2,B2:Q2,0)-3)

Since Vendor appears three columns to the left of price, you are offsetting match by -3. For bid number you will offset by -2.

However, there is more than one vendor with the lowest price, you will get the one who appears first.

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