Can't detect keyword in cell to display NA

kwangyeow

New Member
Joined
Mar 20, 2017
Messages
16
Hi All,

I think my formula is wrong, but not sure where or how to do it to make it show NA at K12.
It suppose to show NA when J12 is empty and N12 has the keyword exchange.

=IF(C12="LR","LR",IF(C12="TOP","TOP",IF(A12<>"",IF(AND(J12=""&IF(ISNUMBER(SEARCH("*exchange*",N12)),"NA",IF(J12="","Not Yet",IF(J12>=A12,"Return")))),""))))


Can someone enlighten what went wrong ?

Google link: https://drive.google.com/open?id=1X1ey_WKMA0c_WYALVrF1rYjVIU6iswzE

Thanks !!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You have misplaced parentheses.
Rich (BB code):
=IF(C12="LR",
  "LR",
  IF(C12="TOP",
    "TOP",
    IF(A12<>"",
      IF(AND(J12="" & IF(ISNUMBER(SEARCH("*exchange*",N12)),
                        "NA",
                        IF(J12="",
                          "Not Yet",
                          IF(J12>=A12,
                            "Return")))),
        ""))))
I do not understand what you are attempting to do with the AND() function. I have highlighted the AND's opening and closing parentheses.
 
Upvote 0
kwangyeow, Good morning.

If is not a misplaced parentheses maybe you need to complete a clause FALSE of 2 IFs where I completed with "missing part 1" and "missing part 2".

I shortened your formula too.

Try to use:
Code:
=IF(OR(C12="LR",C12="TOP"),C12,IF(A12<>"",IF(J12="",IF(ISNUMBER(SEARCH("*exchange*",N12)),"NA","Not Yet"),IF(J12>=A12,"Return","missing part 1")),"MISSING PART 2"))

Is that what you want?

I hope it helps.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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