IF OR Statement

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
567
Office Version
  1. 365
Platform
  1. Windows
Having trouble with (I think is) a IF OR statement.

I have a name in 3 different columns.

John is in B3, H3 and N3
If a date is entered in C3 I want the names in H3 and N3 to disappear.
If a date is entered in I3 I want the names in B3 and N3 to disappear.
If a date is entered in O3 I want the names in B3 and H3 to disappear.

I can get the first argument to work but not the 2nd.

Thanks in advance for your help.

James
 
Ok, will you only have one date per row, or could you have a date in all 3 cells?
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You can put a formula into those cells to display John or "" is that what you are trying to do?
Yes. Let me try to water this down. Formula in 3 columns B, H, N. When I put the formula in 1 of the 3 columns (B,H,N) if any of the other 2 columns have a date then blank out other 2 columns. I tried this in cell C3 but its not working

=IF(I3,OR(O3="","John",""))
 
Upvote 0
When I put the formula in 1 of the 3 columns (B,H,N) if any of the other 2 columns have a date then blank out other 2 columns
I have already said that you cannot do that.
 
Upvote 0
Sorry for the confusion. 1 more question.

I have this formula: =TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",255)),255))

That I want to go from the right of the string and find the first space " " then take the text from that space to the right. Not getting any results.
 
Upvote 0
That is a totally different question & so needs a new thread.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,834
Members
449,192
Latest member
mcgeeaudrey

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