Closed Thread
Results 1 to 7 of 7

Adding conditions to existing formula

  1. #1
    Registered User
    Join Date
    01-15-2020
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Smile Adding conditions to existing formula

    Hi Guys,

    I have managed to muddle my way through to create a formula for a spreadsheet but i have now become stuck and would appreciate any help

    The formula i have is =IF(ISNUMBER(SEARCH("Natalie Harper Laurence",B3)),"SWA",IF(ISNUMBER(SEARCH("Bernard Simpson",B3)),"SWA",IF(OR(L3="Y",M3="Y"),"CA",IF(J3="N","N","SA"))))

    What i now need it to now add is if the cell contains "Natalie Harper Laurence" or "Bernard Simpson" and if either or both cells L3="Y" or M3="Y", i need it to put
    "SWACHC"

    Is this possible? Am i going around the houses in the first place?

    I also need the formula to remain the same if "Natalie Harper Laurence" or "Bernard Simpson" are not in B3

    I hope this makes sense and thank you in advance for any help
    Attached Files Attached Files
    Last edited by Pepe Le Mokko; 01-15-2020 at 12:23 PM. Reason: New title

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula Help

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    I will do it for you this time.Please read forum rules

  3. #3
    Registered User
    Join Date
    01-15-2020
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Re: Formula Help

    Thank you Pepe Le Mokko - I didnt really know what to call it, Thank you for changing it for me tho! Its my first time on a forum too

  4. #4
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467

    Re: Adding conditions to existing formula

    Hi Southless

    perhaps..
    =IF(OR(B3="Natalie Harper-Laurence",B3="Bernard Simpson"),IF(OR(L3="Y",M3="Y"),"SWACHC","SWA"),IF(OR(L3="Y",M3="Y"),"CA",IF(J3="N","N","SA")))

    ..see attached

    zeddy
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467

    Re: Adding conditions to existing formula

    Hi Southless

    ..pardon me for adjusting the slant of your headings..it was easier for me to read this way.
    ..and I made column [AD] a little wider to allow for any "SWACHC" etc etc etc

    zeddy

  6. #6
    Registered User
    Join Date
    01-15-2020
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Re: Adding conditions to existing formula

    zzzeddy you are a superstar!

    Thank you so much!

    Best

    Southless

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Adding conditions to existing formula

    SOUTHLESS, as new member please take the time to review our rules. There aren't many, and they are all important. You have violated two of them already.

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  2. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  3. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  4. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  5. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  6. 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