# question: combo of if / and/ or formula

#### amk1979

##### New Member
combo of if / and/ or formula

can someone help with the following formula? cant figure out what i did wrong below? Would love some help. Maybe there's a cleaner way with index/match? i want to return 150 if it's either 25 or 30 and 200 if it's 35.
thank you!!

=+IF(C27=\$E\$18,\$E\$19,OR((C27=\$D\$18,C27=\$C\$18),\$C\$19,0))

#### Attachments

• 1621384196229.png
52.2 KB · Views: 3

### Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

#### kweaver

##### Well-known Member
Welcome to Mr. Excel:

In your illustration, isn't C27 blank and C19 is a date and C18 is blank?

Also, if you post your sample using XL2BB we won't have to type your data to try to recreate it.

#### Zot

##### Well-known Member
Not sure what is C27, or is it D27?

What about those values which is not 25, 30 or 35?

#### Zot

##### Well-known Member
I'm assumming something like this
=IF(C27=E18,E19,IF(C27=D18,D19,IF(C27=F18,F19,"")))

#### amk1979

##### New Member
Thank you Zo! that is amazing. i was overcomplicating with "or" and playing with "and". thank you so much!!!

sorry - Zot!

Replies
9
Views
116
Replies
0
Views
40
Replies
1
Views
62
Replies
7
Views
344
Replies
0
Views
152

1,141,312
Messages
5,705,682
Members
421,406
Latest member
kluna90

### 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.

### Which adblocker are you using?

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

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