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: 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
Joined
May 8, 2018
Messages
2,067
Office Version
  1. 365
  2. 2010
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
Joined
Nov 26, 2020
Messages
1,411
Office Version
  1. 2016
Platform
  1. Windows
Not sure what is C27, or is it D27?

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

Zot

Well-known Member
Joined
Nov 26, 2020
Messages
1,411
Office Version
  1. 2016
Platform
  1. Windows
I'm assumming something like this
=IF(C27=E18,E19,IF(C27=D18,D19,IF(C27=F18,F19,"")))
 
Solution

amk1979

New Member
Joined
May 18, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Thank you Zo! that is amazing. i was overcomplicating with "or" and playing with "and". thank you so much!!!
 

Forum statistics

Threads
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.
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
Top