IF Statement Help Please :)

jeffj13

New Member
Joined
Jun 25, 2015
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello, appreciate any help provided!

I want to create a statement that returns a yes or no response if certain criteria are met in another column. However, I want to only apply this argument within the same cell values of the corresponding ID. For the example below, for ID 123 I want to check if both "DI" and "OL" exist in the service code column. But I only want to check this for 123 and for the formula to switch the test for 456. I would like it to return no if " DI" and "OL" are present and yes if only "DI" is present. Not sure how to apply this to only the same ID in the first column without crossing over into the next ID. I should also add that the ID's are completely random and I never know exactly what numbers will be used.

IDService Code
123RE
123DI
123OL
456RE
456DI
 
Weird. Not sure it works regarding the opening post and post number 3.
I misspoke slightly in post 3 regarding the logic on the alpha characters. The COUNTIFS for column A within my IF statement was what I was missing and it helped me figure it out from there.
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,214,381
Messages
6,119,192
Members
448,874
Latest member
Lancelots

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