question: combo of if / and/ or formula

amk1979

New Member
Joined
May 18, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
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))

1621384232436.png
 

Attachments

  • 1621384196229.png
    1621384196229.png
    52.2 KB · Views: 5

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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.
 
Upvote 0
Not sure what is C27, or is it D27?

What about those values which is not 25, 30 or 35?
 
Upvote 0
I'm assumming something like this
=IF(C27=E18,E19,IF(C27=D18,D19,IF(C27=F18,F19,"")))
 
Upvote 0
Solution
Thank you Zo! that is amazing. i was overcomplicating with "or" and playing with "and". thank you so much!!!
 
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,086
Members
448,944
Latest member
sharmarick

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