Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
cbanks
 
Posts: n/a
Default Complex Formula Getting Error..

ok.. I keep getting an error when i add on another piece to this formula..

=IF(ISNUMBER(SEARCH("WARN",J505)),"Warning",IF(ISN UMBER(SEARCH("PSSNAP",N505)),"Sales",IF(ISNUMBER(S EARCH("WARN",L505)),"Warning",IF(ISNUMBER(SEARCH(" 2699",L505)),"Warning",IF(ISNUMBER(SEARCH("4004",L 505)),"Warning",IF(ISNUMBER(SEARCH("2036",L505))," Warning",""))))))

I think it may be because im adding my seventh level so to speak but im not
sure.. I need to add more conditions to this formula like below..

=IF(ISNUMBER(SEARCH("WARN",J505)),"Warning",IF(ISN UMBER(SEARCH("PSSNAP",N505)),"Sales",IF(ISNUMBER(S EARCH("WARN",L505)),"Warning",IF(ISNUMBER(SEARCH(" 2699",L505)),"Warning",IF(ISNUMBER(SEARCH("4004",L 505)),"Warning",IF(ISNUMBER(SEARCH("2036",L505))," Warning",IF(ISNUMBER(SEARCH("8010",L505)),"Warning ",""))))))

Is there anyway to keep adding to this function its giving me an error? or
is there another way i need to go about this? I have some minor VBA
experience but dont think i can write all the code.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default Complex Formula Getting Error..

You're looking for warning codes in several of your IFs- you might look
for these all at once by grouping them into an OR statement. That will
free up some capacity in your IF statement.
=OR(ISNUMBER(SEARCH("WARN",J505),ISNUMBER(SEARCH(" WARN",L505)),ISNUMBER(SEARCH("*2699",L505)),etc)

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dominic
 
Posts: n/a
Default Complex Formula Getting Error..

cbanks,

You may be able to use a formula like this:

=if(ISNUMBER(SEARCH("WARN",J505)),"Warning",IF(ISN UMBER(SEARCH("PSSNAP",N505)),"Sales",IF(OR(ISNUMBE R(SEARCH("2699",L505)),(ISNUMBER(SEARCH("4004",L50 5)),(ISNUMBER(SEARCH("2036",L505)),(ISNUMBER(SEARC H("8010",L505))),"Warning","")

Untested but looks like it should work.



"cbanks" wrote:

ok.. I keep getting an error when i add on another piece to this formula..

=IF(ISNUMBER(SEARCH("WARN",J505)),"Warning",IF(ISN UMBER(SEARCH("PSSNAP",N505)),"Sales",IF(ISNUMBER(S EARCH("WARN",L505)),"Warning",IF(ISNUMBER(SEARCH(" 2699",L505)),"Warning",IF(ISNUMBER(SEARCH("4004",L 505)),"Warning",IF(ISNUMBER(SEARCH("2036",L505))," Warning",""))))))

I think it may be because im adding my seventh level so to speak but im not
sure.. I need to add more conditions to this formula like below..

=IF(ISNUMBER(SEARCH("WARN",J505)),"Warning",IF(ISN UMBER(SEARCH("PSSNAP",N505)),"Sales",IF(ISNUMBER(S EARCH("WARN",L505)),"Warning",IF(ISNUMBER(SEARCH(" 2699",L505)),"Warning",IF(ISNUMBER(SEARCH("4004",L 505)),"Warning",IF(ISNUMBER(SEARCH("2036",L505))," Warning",IF(ISNUMBER(SEARCH("8010",L505)),"Warning ",""))))))

Is there anyway to keep adding to this function its giving me an error? or
is there another way i need to go about this? I have some minor VBA
experience but dont think i can write all the code.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
challenge! ISNA() and complex array formula Lorin Excel Discussion (Misc queries) 3 January 3rd 06 04:04 AM
formula too long error SB Excel Discussion (Misc queries) 2 December 19th 05 09:56 PM
I Need Help with complex formula ? Dan Thompson Excel Worksheet Functions 1 September 14th 05 12:00 AM
Formula error... Jambruins Excel Discussion (Misc queries) 2 February 24th 05 09:57 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM


All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"