I am using Excel 2010 and trying to write and a nested IF statement that does 4 things.

1. Find text ‘2014’ in column B, for budget year 2014.

2. If it finds ‘2014’ in column B, then find two digit month text in column C.

3. If 1 & 2 are true then place column D in that month of 2014.

4. If column C has more than 1 month code in 2014 than split $ amount of column D by total number of month codes in column C.

Here is my current formula that needs some work.

=IF(OR(MID($B4,1,4)="2014",MID($B4,6,4)="2014",),IF(OR(MID($C4,1,1)=TEXT(F$2,"#"),MID($C4,3,1)=TEXT(F$2,"#"),MID($C4,5,1)=TEXT(F$2,"#"),),IF(LEN($C4)<3,$D4,IF(LEN($C4)<=4,$D4/2,IF(LEN($C4)>4,$D4/3,0)))))

Thanks for reading,

Ken

## Bookmarks