What formula should I use?

jessielim96

New Member
Joined
Nov 27, 2018
Messages
3
Hi,

Can advise which formula should I use if I want to seek the answer as below criteria?

If I need to purchase pen/paper:
1. Company A will be always the priority,
2. Company B will be the 2nd choice if Company A did not sell this item,
3. Company C will be the last choice if both Company A & B does not have the price.

47EG8.png


I tried to use "If" function, but it seem incorrect.
Hope to hear from you all soon.

Thanks!!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Does this work for you?

Code:
=IF(B2<>"",B2,IF(C2<>"",C2,IF(D2<>"",D2,"")))
 
Upvote 0
This sign "<>"" " does it means more & less than no value?

It means "not equal to", you can look at it like this; If(B2<>"" - If B2 is not equal to empty

And no problem, glad I could help :)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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