+ Reply to Thread
Results 1 to 6 of 6

Excel Function (need a Like function)

  1. #1
    Registered User
    Join Date
    12-28-2008
    Location
    Yutan, Nebraska
    Posts
    3

    Excel Function (need a Like function)

    Well I'm working on something and need a bit of help, I'm used to using SQL commands, and this is what I need:

    =IF(B163 like '%+1%', N163, (BH162+(N163-N162)))

    If B163 contains +1 then it should return N163, if not it should return (BH162+(N163-N162))

    Obviously no like function, so I need some way of accomplishing the same thing. All help is greatly appreciated. Thanks,

    jackjack

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Does this work?

    =IF(B163="+1",N163,BH162+N163-N162)

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    If you are trying to do this with functions, then have a look at SEARCH and FIND functions.

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    These will bring back an error if it is not found, otherwise the position in the string being searched. So you could do something like

    Please Login or Register  to view this content.
    rylo

  4. #4
    Registered User
    Join Date
    12-28-2008
    Location
    Yutan, Nebraska
    Posts
    3
    Sorry should have specified, daddylonglegs +1 is only part of the value, got text and contains +1 in it.

    rylo it's saying Err: 508, not quite sure why it's not working, it looks alright.

  5. #5
    Registered User
    Join Date
    12-28-2008
    Location
    Yutan, Nebraska
    Posts
    3
    Ok should say I'm using openoffice.org's calc, basically an excel clone. Anyways, I'm trying to use this:

    Please Login or Register  to view this content.
    And it's returning: Err:508

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Don't know anything about the appn you are using so this would only be a guess. The ISERROR function returns a boolean result so either remove the =1 part of the test or change 1 to TRUE and see how that goes....

    rylo

+ 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