+ Reply to Thread
Results 1 to 13 of 13

IF formula

  1. #1
    Registered User
    Join Date
    09-15-2010
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    32

    IF formula

    =IF(AND(ISNUMBER(SEARCH("SIP",D1:D109)),O20>0),"SURCORCLC required", "")


    that is the formula I am trying to use, however it will not populate "SURCORCLC required" when it is a "range" of fields (D1:D109)...but when I put one specific cell, it works...any help would be much appreciated...the goal is to find SIP in the entire column of D...thanks.
    Last edited by CommonCents; 10-07-2010 at 01:37 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: IF formula

    Try:

    =IF(AND(ISNUMBER(MATCH("SIP",D1:D109,0)),O20>0),"SURCORCLC required", "")

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-15-2010
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: IF formula

    No dice. still doesn't work.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: IF formula

    Works for me otherwise I wouldn't have posted it.

    Did you copy my formula or edit yours?

    Upload your workbook please.

    Regards

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF formula

    Hi,

    The SEARCH() function only examines text in a cell. You probably need to use an =MATCH() function perhaps wrapped inside an =INDEX() function. But I don't understand why you're testing for a number when you appear to be wanting to find instances of 'SIP'.

    Upload a workbook so that we can see your request in context.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Registered User
    Join Date
    09-15-2010
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: IF formula

    shucks, you are correct, I copied exactly and it worked...thank you, I appreciate your help, i guess i just tried search and it worked in one cell, now if I wanted to include multiple words, how would that look if you could help...thank you again for the help.

  7. #7
    Registered User
    Join Date
    09-15-2010
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: IF formula

    and I appologize, but due to the sensitivity of my work, and who I work for I can't post the actual sheet, as mundane and non-classified as it is.

  8. #8
    Registered User
    Join Date
    09-15-2010
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: IF formula

    the scenario is that i am trying to include the search not just for SIP but for SIP101, SIP201, SIP301, SIP401...

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: IF formula

    If it's the same prefix, add a wild card (*)

    =IF(AND(ISNUMBER(MATCH("SIP*",D1:D109,0)),O20>0),"SURCORCLC required", "")

    Regards

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF formula

    Hi,

    You can use =MATCH("SIP*",D1:D109",False) to find the row with the first occurrence of SIP..., but your mention of trying to find several SIP's suggests that maybe you're trying to extract data and not just identify a single occurrence.

    Noting what you've said about sensitivity, nevertheless can't you just disguise all the data and change it to something else. We only want a subset of the data but really need to see the context and know exactly what you want to appear once you've identified the records.

    Rgds

  11. #11
    Registered User
    Join Date
    09-15-2010
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: IF formula

    perfect! thank you much.

  12. #12
    Registered User
    Join Date
    09-15-2010
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: IF formula

    it' not that the data is all that senstive, it is that I have very stringent network restrictions to uploading nd downloading from confidential servers and computers that I work from.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: IF formula

    You're welcome. Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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