Can If Formula can be Used

prasadsg2005

New Member
Joined
Jun 16, 2010
Messages
20
Hey,

I need to Check more than 50 times by applying Filters Everytime. May be an If Formula might work.

If A2 begins with 431 then check B2 if its Value is Not "Saudi" , if Correct then fill A2 Yellow.
And if A2 Does not Begins with 431 then check if B2 is = Saudi then Fill A2 with Red.

I need to change this 431 with Different Code 6 Times and Saudi to 6 Different Countries.
Each time applying Filter is a Pain.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of one or two of your sheets. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). Include the 6 different codes and the 6 different countries.
 
Upvote 0
I Need to Club all below in one Formula.

IF(A2="431",IF(B2="Saudi Arabia","Saudi Arabia",""))
IF(A2="416",IF(B2="Jordan","Jordan",""))
IF(A2="419",IF(B2="Kuwait","Kuwait",""))
IF(A2="401",IF(B2="Bahrain","Bahrain",""))
IF(A2="439",IF(B2="Yemen","Yemen",""))
IF(A2="414",IF(B2="Iraq","Iraq",""))
 
Upvote 0
Is it only A2 and B2 that you want to check or do you have data down columns A and B that you want to check? I'm not sure that I can do this with a formula but a macro can certainly do what you want. Are you open to using a macro?
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,658
Latest member
GStorm

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