Formula not working - what is wrong?

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

I want to modify this formula (currently working):
=IF(D5="";"";IF(K5="cancelled";"Cancelled";IF(AND(ISNA(VLOOKUP(D5;'Sammanst 1904'!$F:$F;1;FALSE));B5<>"");"Plan now (!)";IF(ISNA(VLOOKUP(D5;'201904'!$F:$F;1;FALSE));"Plan";"Included"))))

I added the red string below but it is not working. If the specified text + wildcard is in cell J4 i want it to run the rest of the functions, if not, I want it to return "Period not specified" (not sure where to place this in the formula string).


=IF(D4="";"";IF(K4="cancelled";"Cancelled";IF(--(SEARCH({jan;feb;mar;apr;maj;may;jun;jul;aug;sep;okt;oct;nov;dec}&"*";J4)>0;IF(AND(ISNA(VLOOKUP(D4;'Sammanst 1904'!$F:$F;1;FALSE));B4<>"");"Plan now (!)";IF(ISNA(VLOOKUP(D4;'Sammanst 1904'!$F:$F;1;FALSE));"Plan";"Included"))))))

Any suggestions?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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