Double IF with OR Formula leaving cell blank

drop05

Active Member
Joined
Mar 23, 2021
Messages
285
Office Version
  1. 365
Platform
  1. Windows
Hello I have this formula I am trying to get to work and it is leaving the cell place when I have an X in T5 and the word First Class is on b33 on the page this page
I was wondering what I am doing wrong? I am trying to do is if First class is on cell b33 on page This Page then do the following If statement IF(OR($T5="X",$U5="X",$V5="X",$W5="X",$X5="X"),"X","") can take place where if any of those columns on row 5 have an X then it is good to put an X, just the looking for First Class has to happen first and if it is not first class then it does nothing basically
=IF(ThisPage!$B$33="First Class",IF(OR($T5="X",$U5="X",$V5="X",$W5="X",$X5="X"),"X",""),"")
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

I don't see an issue with your formula, if you're not getting the correct result, perhaps check your B33, T5, U5, etc. for leading and/or trailing spaces ?
 
Upvote 0
What is the name of the sheet that the T5 to X5 in your formula are on?
What is the name of the sheet that the formula is on?

I agree with @jtakw about your current formula, but note that it could also be written as
Excel Formula:
=IF(AND(ThisPage!$B$33="First Class",COUNTIF(T5:X5,"X")),"X","")
 
Upvote 0
Hi,

I don't see an issue with your formula, if you're not getting the correct result, perhaps check your B33, T5, U5, etc. for leading and/or trailing spaces ?
It was a simple mistake, it was because of the "" since it was an integer, i got rid of them and it fixed it! Thank you
 
Upvote 0
What is the name of the sheet that the T5 to X5 in your formula are on?
What is the name of the sheet that the formula is on?

I agree with @jtakw about your current formula, but note that it could also be written as
Excel Formula:
=IF(AND(ThisPage!$B$33="First Class",COUNTIF(T5:X5,"X")),"X","")
I like this formula! I make it noted but yeah I just mentioned that because of the "" it was not doing it so got rid of them and it worked!
Thank you as well for your comment and help!
 
Upvote 0
You're welcome, glad you got it working.
 
Upvote 0

Forum statistics

Threads
1,224,937
Messages
6,181,859
Members
453,068
Latest member
DCD1872

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