+ Reply to Thread
Results 1 to 8 of 8

Text queries within nested IF formulas to provide required output

  1. #1
    Registered User
    Join Date
    09-11-2015
    Location
    Scotland
    MS-Off Ver
    2014
    Posts
    4

    Text queries within nested IF formulas to provide required output

    Attempting a formula which is quite possibly beyond my excel knowledge!
    I have a cell which showes either 3 options - Full Disposal, No Disposal, Part Disposal. I am attempting to check further cells depending on the initial value of the 'Disposals' cell.

    Formula -

    '=IF(AND(ISNUMBER(SEARCH("Full Disposal",X42)),V42<0),"Error",IF(AND(ISNUMBER(SEARCH("No Disposal",X42)),V42<0),"Error",IF(AND(ISNUMBER(SEARCH("Part Disposal",X42)),V42<0,U42<0),"Error","Okay")

    If cell contains 'Full Disposal' & other query is true, show 'error', else check for other two types of disposal rinse and repeat.

    I think where i am going wrong is with regards to whethther the ISNUMBER(SEARCH) is providing the correct response to work?

    Any help much appreciated!
    Thanks
    Last edited by marky385; 09-11-2015 at 07:45 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Formula Help

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Registered User
    Join Date
    09-11-2015
    Location
    Scotland
    MS-Off Ver
    2014
    Posts
    4

    Re: Formula Help

    Apologies, updated!

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Text queries within nested IF formulas to provide required output

    Hi Marky,

    Search formula will find if there is anything will match according to that text means "disposal" world are always it will search and will give you the destination number. Isnumber function will convert it in to TRUE then all the conditions where you mentioned "disposal" will search and revert number.

    If you could share you spreadsheet. It will very easy to give you valuable results.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    09-11-2015
    Location
    Scotland
    MS-Off Ver
    2014
    Posts
    4

    Re: Text queries within nested IF formulas to provide required output

    Excel Test.xlsx

    Find attached clip of excel.

    Where i have it returning the text value in column U, dependent on that answer i would like to do further checks in column V.

    Where column U shows 'No Disposal' I would like it to test if column T is <0 and if so return "Incorrect".
    Where it shows 'Full disposal' I would like to test that column S is <0 and similarly if so return "incorrect".

    Hope this makes sense.
    Thanks for your previous response.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Text queries within nested IF formulas to provide required output

    Try V11=IF(AND(U11="No Disposal",T11<=0),"Error",IF(AND(U11="Full Disposal",S11<=0),"Error",IF(AND(U11="Part Disposal",T11>=0,S11>=0),"Error","okay")))

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this will help.

  7. #7
    Registered User
    Join Date
    09-11-2015
    Location
    Scotland
    MS-Off Ver
    2014
    Posts
    4

    Re: Text queries within nested IF formulas to provide required output

    Thanks Ankur that seems to work great.
    As usual simple > attempting to have a complex forumla.

    Many Thanks

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Text queries within nested IF formulas to provide required output

    Glad it help you. Please mark as it solved .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1