Choose Top 2 Supplier out of 5 Supplier list

arnabbhuyan

New Member
Joined
Oct 26, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi Team,
I am looking for a solution which helps me to find out Top 2 Supplier out of 5 Supplier list provided by user with some criteria for selection.

Logic is as follows:

if in Q15 Metro is mentioned as #1 supplier, set Metro #1 and ask for supplier #2.
If Metro is not mentioned as #1, please set #1 Supplier from Q15 as #1 and set Metro #2. If a supplier is indicated as supplying only beverages in Q16, please take the next best supplier that is not supplying beverages only.
if nothing is mentioned in Supplier column(B) then by default set Supplier #2 = Metro

I have used formula to calculate but the formula for Supplier #2 always returns Metro(column num B13)

Logic written for B12(Supplier #1) --> =IF(C3<"x",B3,IF(C4<"x",B4,IF(C5<"x",B5,IF(C6<"x",B6,IF(C7<"x",B7)))))
Logic for B13(Supplier #2) --> =IF(OR(B12<>"metro"),B3,IF(OR(C4<"x",B4="metro"),B5,IF(OR(C5<"x",B5="metro"),B6,IF(OR(C6<"x",B6="metro"),B7,IF(OR(C7<"x",B7="metro"),B4)))))



Thanks,
Arnab
 

Attachments

  • Pic11.png
    Pic11.png
    17.7 KB · Views: 13

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,084
Messages
6,123,028
Members
449,092
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top