+ Reply to Thread
Results 1 to 6 of 6

Using IF function with multiple conditions to auto populate cell

  1. #1
    Registered User
    Join Date
    04-14-2010
    Location
    Singapore
    MS-Off Ver
    2021
    Posts
    27

    Using IF function with multiple conditions to auto populate cell

    Hi and good day to all,

    I have been trying to do this for a while now but am quite lost on how to do it. Hoping some kind souls here can help a noob like me, please.



    Cell B1: contains some description and I want to focus on those with keywords such as "bill payment", "interest earned", "funds transfer"

    Cell B2: to partial search the keywords (with wildcard?) and reflects;

    "Expense" for "bill payment",
    "Income" for "interest earned",
    "Transfer" for "funds transfer".
    "Other" for no matches of any above-mentioned (Expense, Income, Transfer)



    After looking at other examples in the Forum and watching different YouTube tutorials, I think IF(ISNUMBER(SEARCH) might be the solution for me.

    But is it possible to add multiple conditions to the IF function?;


    =IF(ISNUMBER(SEARCH("*Transfer*", B1)), "Transfer", "")


    Thank you so, so much in advance!
    Last edited by axangec; 11-20-2021 at 01:18 AM.

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

    Re: IF Function help

    try below
    =IFERROR(LOOKUP(2,1/SEARCH({"payment","earned","transfer"},B1),{"Expense","Income","Transfer"}),"Other")

    Change "payment","earned","transfer" these key words as per your need.
    Samba

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

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: IF Function 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. Tell us what you are trying to do, not how you think it should be done.

    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.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    04-14-2010
    Location
    Singapore
    MS-Off Ver
    2021
    Posts
    27

    Re: IF Function help

    Thank you so much for the kind assistance, sincere appreciation!

  5. #5
    Registered User
    Join Date
    04-14-2010
    Location
    Singapore
    MS-Off Ver
    2021
    Posts
    27

    Re: IF Function help

    I am so sorry for that, my bad. I have changed the title as per your guidance, hope that's ok now. Thank you.
    Last edited by AliGW; 11-20-2021 at 03:59 AM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: Using IF function with multiple conditions to auto populate cell

    It is fine now. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. Right function, Left function, Mid function to extract values in column A
    By bjnockle in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-14-2020, 03:14 PM
  2. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  3. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  4. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  5. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. 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

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