+ Reply to Thread
Results 1 to 12 of 12

Help with OR Function or Better Function if there's any!

  1. #1
    Registered User
    Join Date
    01-09-2015
    Location
    Taguig City, Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    9

    Unhappy Help with OR Function or Better Function if there's any!

    Hi All,

    I quite newbie with excel and I'm really having hard time making formulas, especially with this one.

    I'm working with 4000+ data's so I need to use formulas as much as possible.

    Here's the scenario:
    A1 = apple
    B1 = banana
    C1 = Mark
    D1 = mango
    E1 = Jeff

    I want to achieve if the cell contains apple or banana or mango the result should be Fruits, while if its Mark or Jeff the result should be Person.

    Can anyone help with the OR function? or advise instead of there's a better one.

    Thanks in advance.

    Kamote.Que

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Help with OR Function or Better Function if there's any!

    Hi Kamote,
    Welcome to the forum.

    There are multiple possible ways to achieve what you are asking. Would you provide some more information as you said you are dealing with 4000+ rows.
    I would suggest that you create two lookup tables one for fruit and another for person, that will make your task much easier.

    So better if you attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    09-07-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: Help with OR Function or Better Function if there's any!

    Hi here am used if condition formula, drag the formula in row as you needed,
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Help with OR Function or Better Function if there's any!

    Create a table with two columns
    1 for name (Apple, Banana, Mark, Mango, Jeff etc., ) and 2nd for the name in 1st column which it belongs (Fruit, Fruit, Perosn, Fruit, Person ...)
    and use Vlookup formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    01-09-2015
    Location
    Taguig City, Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    9

    Re: Help with OR Function or Better Function if there's any!

    @ganeshkumar - the problem that i'm actually facing is the list of users. The inactive users were accidentally mixed with the active users, not only that some users have also duplicate names. So all in all i have 4K+ of records.

    I was able to identify at least 20 inactive users and 100 active users, and I want to create a formula that would search the records and mark those 20 accounts as inactive and 100 accounts as Active.

    So result is either Active and inactive, but I just dont how to create the formula.

    @nflsales - could you tell me how?

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Help with OR Function or Better Function if there's any!

    Welcome to the forum Kabayang kamote.que

    it is better to post a sample file for the members to work with. you can put fake data to illustrate the problem.\

    To attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Regards,
    vlady
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  7. #7
    Registered User
    Join Date
    01-09-2015
    Location
    Taguig City, Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    9

    Re: Help with OR Function or Better Function if there's any!

    Thanks for replying...

    I want to search the cells if its contains a texts..

    Example:
    Column A:
    briones kamote
    arnie m
    keno
    MMJ
    Art
    kamote
    test
    mj
    te arnie
    te brioneS
    te keno


    Search each cell if it's contains "keno", "mj", "briones", "arnie"...etc...
    I've tried below formula, but its just too long..

    =IF(ISNUMBER(SEARCH("keno",B2)),"Active",IF(ISNUMBER(SEARCH("mj",B2)),"Active")).........etc...

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Help with OR Function or Better Function if there's any!

    pls attach a sample file with which words you are looking for and where you want to look

  9. #9
    Registered User
    Join Date
    01-09-2015
    Location
    Taguig City, Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    9

    Re: Help with OR Function or Better Function if there's any!

    Please see attached.

    I want all texts in Sheet2 able to search each cell in sheet1.

    If it matches, Column B on Sheet1 will display Active or Inactive.
    Attached Files Attached Files

  10. #10
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Help with OR Function or Better Function if there's any!

    try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    drag formula down using fill handle
    is this what you want?

    Note that this depends on your data like

    Briones kamote
    Briones saging
    they have both the word briones and both will return active

  11. #11
    Registered User
    Join Date
    01-09-2015
    Location
    Taguig City, Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    9

    Re: Help with OR Function or Better Function if there's any!

    Did some test and it works really great... KUDOS vlady!!! really appreciate it.

  12. #12
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Help with OR Function or Better Function if there's any!

    Walang anuman kabayan.

    Regards,
    Vlady

    Note: You can mark your thread solved.

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.

+ 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: 13
    Last Post: 04-08-2014, 05:46 AM
  2. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  3. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM

Tags for this Thread

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