• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need to find the error in this formula

Uzzal

Member
=IF(C28=OR("20'","20'H"),1580,2040)
for 20' or 20'H berth operator will charge 1580
& for 40' or 40'H they will charge 2040

My requirement is
when C28=20' or 20'H then E28 will be 1580
& when C28=40' or 40'H then E28 will be 2040
any support will be appreciated.
 
Hi,

You have now various :awesome: solutions provided by Deepak Sir.
I just want to add this (as per your question title)

IF(OR can not be written like this:
=IF(C28=OR("20'","20'H"),1580,2040)

you were near but you to do something like:
=IF(OR(C28={"20'","20'H"}),1580,2040)

Regards,
 
Hi,

You have now various :awesome: solutions provided by Deepak Sir.
I just want to add this (as per your question title)

IF(OR can not be written like this:
=IF(C28=OR("20'","20'H"),1580,2040)

you were near but you to do something like:
=IF(OR(C28={"20'","20'H"}),1580,2040)

Regards,

@Khalid NGO Just realized , i missed that array part.

Excel is excellent in itself, sometimes with a small liberty; we have couple of awesomeness to joy!
 
Back
Top