Nested If Statement Help

jmujjf

New Member
Joined
Aug 4, 2015
Messages
12
Hello All,

I've received some amazing assistance with a few complicated (to me) Excel issues on this site so I figured I'd try on this latest problem. I've received some criteria that I need to use to write some fairly complex IF statements in order to populate fields in Excel. I've provided a few samples of the criteria I was given below:

If AREA Like "GF*" And ( Index = "001" Or Index = "019") Then
Site = "CL"

If AREA Like "GF*" And ( Index = "002" Or Index = "029") Then
Site = "CL"

If AREA Like "GF*" And ( Index = "003" Or Index = "039") Then
Site = "CL Other"


There are like 30+ more criteria just like this and I'm wondering the best way to handle this in Excel. I've never had to figure out a formula that was this long and/or complex.

Thanks for any assistance you can provide.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Maybe =Match would suffice?

The formula for the Site value with Area = A1 and Index=B1 then the first =If:.
=IF(AND(MATCH("GF*",A1,0)=1,OR(B1=1,B1=9)),"CL",FALSE)

Just add the next If where False is at...
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,048
Members
449,206
Latest member
Healthydogs

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