问题
I have a sheet that gives the lowest price among two suppliers. the problem is it displays the value only if both barcode comes in the same row. pls help me to expand this equation that where ever matching barcode comes in the sheet must give me the lowest supplier.supplier column ("K") works only if the same barcode comes in same row ("A" & "C") an eg is there ABC213 are not in same row, so "K" doesnt give value. i have applied a formula there. so if u can modify it that would be a great help for me
回答1:
To get lowest price you can use MIN(), example =MIN(B2, D2) :
For the K2 you already have the formula which works well
=INDEX(A$1:D$1,match(J2,A2:D2,0)-1)
And now you select cells J2 + K2 and just drag down to expand it.
来源:https://stackoverflow.com/questions/62761526/to-display-which-supplier-gives-the-lowest-price