+ Reply to Thread
Results 1 to 3 of 3

If formula with 3 condition

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    63

    If formula with 3 condition

    Hi all,

    I have data input worksheet. The expected data are as follows:
    1) If cell A is in the database then cell B will lookup to the database sheet
    2) If in the cell A is not in the database, then the text "Please update database" is written
    3) if cell A is empty then cell B is not N/A.

    Please help, many thanks.
    Attached Files Attached Files
    Last edited by triaji; 07-04-2023 at 05:10 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: If formula with 3 condition

    Try this:

    =IF(A3="","",IFNA(INDEX(Database!$B$3:$B$778,MATCH($A3,Database!$A$3:$A$778,0)),"Please update database"))

    or:

    =IF(A3="","",IFERROR(INDEX(Database!$B$3:$B$778,MATCH($A3,Database!$A$3:$A$778,0)),"Please update database"))
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-03-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: If formula with 3 condition

    Dear Ms AliGW,

    Thanks a lot for your answer. It works

+ 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. [SOLVED] Formula for all condition must met.
    By max2599 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-08-2021, 05:42 AM
  2. Replies: 19
    Last Post: 05-21-2019, 03:17 PM
  3. [SOLVED] Need formula for below condition
    By sharadmaxwell in forum Excel General
    Replies: 5
    Last Post: 05-30-2018, 02:35 AM
  4. If condition Formula
    By subashmitra in forum Excel General
    Replies: 3
    Last Post: 01-06-2016, 08:17 AM
  5. Excel formula if conition formula for 2 condition with consider timings
    By breadwinner in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-18-2013, 11:05 AM
  6. [SOLVED] Help for if condition formula result only either hit or miss from mulitple condition
    By breadwinner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2013, 07:29 AM
  7. Two-condition If formula
    By darksupernova in forum Excel General
    Replies: 9
    Last Post: 08-08-2008, 01:47 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