Forum Discussion
finding the least cost number from a group of reference numbers
Hello, I am looking to have excel return the results of the least cost option from reference number 1, then 2 then 3 etc.. We are trying to get optimal results using multiple vendors.
Please advise how this can be done.
Ref number Results
1 FXFE $133.21 FXFE $133.21
1 CNWY $418.98
1 DAYF $418.98
2 FXFE $210.71 FXFE $210.71
2 CNWY $411.85
2 DAYF $234.88
3 FXFE $334.26
3 CNWY $135.71
3 DAYF $114.46 DAYF $114.46
4 Replies
- LorenzoSilver Contributor
Assuming that your data are in columns A, B and C, starting in row 2:
Enter the following formula in another cell in row 2, for example in E2:
=IF($C2=MINIFS($C$2:$C$1000, $A$2:$A$1000, $A2), $B2:$C2, "")
Fill down.
- OliverScheurichGold Contributor
Thank you for adding the expected result. I hope the formula in the attached sample file works for you.