Quick formula question

markster

Well-known Member
Joined
May 23, 2002
Messages
579
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello

I have a 40k line spreadsheet of data.

I need help with a formula to put in AF3 to AF40,000 so for the first line it will look at columns AC3,AD3,AE3,AF3 and if the term "Out of Scope" is present in one or more of the cells, it returns "Out of Scope" and if not "In Scope".

Thanks
Mark
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Does;

Code:
=IF(COUNTIF(AC3:AF3,"Out of Scope")>0,"Out of Scope","In Scope")

Work for you?
 
Upvote 0
Works perfectly - thank you very much.

Actually mate I just found some errors when spot checking the data.

Example

Cell AC23 says In Scope
Cell AC24 says In Scope
Cell AC25 says In Scope
Cell AC26 says Out of Scope

Cell AC27 returns In Scope when it should be Out of Scope because AC26 is Out of Scope

There's quite a few more of these on closer inspection.

Any ideas?

Thanks
Mark
 
Upvote 0
The first thing that springs to mind is you asked for a Formula that dealt with data in Columns and not Rows which is the problem you seem to be experiencing?

Other than that, no :(

Can you post a proper sample of your data?
 
Upvote 0
Can I post a screen print or insert and image on this board? Can't see how to do it.

Cheers
Mark
 
Upvote 0
If the cell doesnt exactly equal "out of scope" it wont work. This may:

=IF(COUNTIF(AC23:AC26,"*Out of Scope*"),"Out of Scope","In Scope")
 
Upvote 0
Works great thank you - thank you both for your help.

Cheers
Mark
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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