# 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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

#### 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
84
Replies
7
Views
145
Replies
0
Views
67
Replies
3
Views
42
Replies
0
Views
98

1,136,954
Messages
5,678,758
Members
419,782
Latest member
gc75150

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